Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
workspaces
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ssa
workspaces
Merge requests
!355
Post Server Apocalypse Round 2
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Post Server Apocalypse Round 2
testing_barrage_fixes
into
main
Overview
1
Commits
3
Pipelines
3
Changes
1
Merged
Charlotte Hausman
requested to merge
testing_barrage_fixes
into
main
3 years ago
Overview
1
Commits
3
Pipelines
3
Changes
1
Expand
Standard CMS Imaging fixes
0
0
Merge request reports
Viewing commit
e57c2bbf
Prev
Next
Show latest version
1 file
+
77
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
e57c2bbf
fixing restore_cms condor template
· e57c2bbf
Charlotte Hausman
authored
3 years ago
schema/versions/d3abd475fbb4_correcting_restore_condor.py
0 → 100644
+
77
−
0
Options
"""
correnting restore condor
Revision ID: d3abd475fbb4
Revises: 6508afd4da68
Create Date: 2021-07-16 16:51:30.483952
"""
from
alembic
import
op
import
sqlalchemy
as
sa
# revision identifiers, used by Alembic.
revision
=
"
d3abd475fbb4
"
down_revision
=
"
6508afd4da68
"
branch_labels
=
None
depends_on
=
None
condor_content
=
"""
executable = std_restore_imaging.sh
arguments = {{product_locator}} {{cal_locator}} {{request_id}} metadata.json PPR.xml
output = restore.out
error = restore.err
log = condor.log
SBIN_PATH = /lustre/aoc/cluster/pipeline/$ENV(CAPO_PROFILE)/workspaces/sbin
should_transfer_files = yes
transfer_input_files = $(SBIN_PATH)/.matplotlib, $(SBIN_PATH)/pycapo, $(SBIN_PATH)/framework.sh, $(SBIN_PATH)/productfetcher, $(SBIN_PATH)/casa_envoy, $(SBIN_PATH)/vela, $(SBIN_PATH)/deliver, ./PPR.xml, ./metadata.json
transfer_output_files = working, rawdata, products
request_memory = {{ramInGb}}
getenv = True
environment =
"
CAPO_PATH=/home/casa/capo
"
queue
"""
old_content
=
"""
executable = std_restore_imaging.sh
arguments = {{product_locator}} {{cal_product_locator}} {{request_id}} metadata.json PPR.xml
output = restore.out
error = restore.err
log = condor.log
SBIN_PATH = /lustre/aoc/cluster/pipeline/$ENV(CAPO_PROFILE)/workspaces/sbin
should_transfer_files = yes
transfer_input_files = $(SBIN_PATH)/.matplotlib, $(SBIN_PATH)/pycapo, $(SBIN_PATH)/framework.sh, $(SBIN_PATH)/productfetcher, $(SBIN_PATH)/casa_envoy, $(SBIN_PATH)/vela, $(SBIN_PATH)/deliver, ./PPR.xml, ./metadata.json
transfer_output_files = working, rawdata, products
request_memory = {{ramInGb}}
getenv = True
environment =
"
CAPO_PATH=/home/casa/capo
"
queue
"""
def
upgrade
():
op
.
execute
(
f
"""
UPDATE workflow_templates
SET content = E
'
{
condor_content
}
'
where filename =
'
restore_cms.condor
'
"""
)
def
downgrade
():
op
.
execute
(
f
"""
UPDATE workflow_templates
SET content = E
'
{
old_content
}
'
where filename =
'
restore_cms.condor
'
"""
)
Loading