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
Commits
1f6e6d46
Commit
1f6e6d46
authored
1 year ago
by
Sam Kagan
Browse files
Options
Downloads
Patches
Plain Diff
Added same fix for ql and coarse *envoy.condor's to above migration
parent
aa812609
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!1605
Merge 2.8.2.3 work to main
,
!1570
Created migration to fix vlass_(seci|ql)_envoy.condor's requirements and Rank
Pipeline
#14156
passed
1 year ago
Stage: pull-db
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
shared/workspaces/alembic/versions/12d0499d232d_fix_vlass_seci_envoy_condor.py
+189
-0
189 additions, 0 deletions
...mbic/versions/12d0499d232d_fix_vlass_seci_envoy_condor.py
with
189 additions
and
0 deletions
shared/workspaces/alembic/versions/12d0499d232d_fix_vlass_seci_envoy_condor.py
+
189
−
0
View file @
1f6e6d46
...
...
@@ -102,6 +102,167 @@ Rank = (TARGET.VLASS == True) && (TARGET.VLASSTEST =!= True)
queue
"""
old_vlass_ql_envoy_condor
=
"""
executable = vlass_ql_envoy.sh
arguments = metadata.json PPR.xml {{request_id}}
output = envoy.out
error = envoy.err
log = condor.log
SBIN_PATH = /lustre/aoc/cluster/pipeline/$ENV(CAPO_PROFILE)/workspaces/sbin
VLASS_DIR = {{data_location}}
should_transfer_files = yes
transfer_input_files = {{#radial}}$ENV(HOME)/.ssh/condor_ssh_config, {{/radial}}$ENV(HOME)/.ssh/condor_transfer, nraorsync://$(SBIN_PATH)/.matplotlib, nraorsync://$(SBIN_PATH)/pycapo, nraorsync://$(SBIN_PATH)/update_stage, nraorsync://$(SBIN_PATH)/casa_envoy, nraorsync://$(SBIN_PATH)/vela, nraorsync://$(VLASS_DIR)/working, nraorsync://$(VLASS_DIR)/rawdata, nraorsync://$(VLASS_DIR)/products{{#remote}}, nraorsync://$(VLASS_DIR)/{{profile}}.properties{{/remote}}, nraorsync://$(VLASS_DIR)/PPR.xml, nraorsync://$(VLASS_DIR)/metadata.json{{files_to_transfer}}
transfer_output_files = .job.ad
+nrao_output_files =
"
working products
"
when_to_transfer_output = ON_EXIT
output_destination = nraorsync://$(VLASS_DIR)
+WantIOProxy = True
{{#radial}}
universe = grid
grid_resource = condor radialhead.nrao.radial.local radialhead.nrao.radial.local
+remote_jobuniverse = 5
+remote_requirements = True
+remote_ShouldTransferFiles =
"
YES
"
+remote_WhenToTransferOutput =
"
ON_EXIT
"
{{/radial}}
request_memory = 31G
request_disk = 100G
getenv = True
{{^remote}}
environment =
"
CAPO_PATH=/home/casa/capo
"
requirements = (VLASS == True) && (HasLustre == True)
+partition =
"
VLASS
"
{{/remote}}
{{#remote}}
requirements = (VLASS == True)
+partition =
"
VLASS
"
Rank = (TARGET.VLASS == True) + (TARGET.VLASSTEST =!= True) + (HasLustre =!= True)
{{/remote}}
queue
"""
new_vlass_ql_envoy_condor
=
"""
executable = vlass_ql_envoy.sh
arguments = metadata.json PPR.xml {{request_id}}
output = envoy.out
error = envoy.err
log = condor.log
SBIN_PATH = /lustre/aoc/cluster/pipeline/$ENV(CAPO_PROFILE)/workspaces/sbin
VLASS_DIR = {{data_location}}
should_transfer_files = yes
transfer_input_files = {{#radial}}$ENV(HOME)/.ssh/condor_ssh_config, {{/radial}}$ENV(HOME)/.ssh/condor_transfer, nraorsync://$(SBIN_PATH)/.matplotlib, nraorsync://$(SBIN_PATH)/pycapo, nraorsync://$(SBIN_PATH)/update_stage, nraorsync://$(SBIN_PATH)/casa_envoy, nraorsync://$(SBIN_PATH)/vela, nraorsync://$(VLASS_DIR)/working, nraorsync://$(VLASS_DIR)/rawdata, nraorsync://$(VLASS_DIR)/products{{#remote}}, nraorsync://$(VLASS_DIR)/{{profile}}.properties{{/remote}}, nraorsync://$(VLASS_DIR)/PPR.xml, nraorsync://$(VLASS_DIR)/metadata.json{{files_to_transfer}}
transfer_output_files = .job.ad
+nrao_output_files =
"
working products
"
when_to_transfer_output = ON_EXIT
output_destination = nraorsync://$(VLASS_DIR)
+WantIOProxy = True
{{#radial}}
universe = grid
grid_resource = condor radialhead.nrao.radial.local radialhead.nrao.radial.local
+remote_jobuniverse = 5
+remote_requirements = True
+remote_ShouldTransferFiles =
"
YES
"
+remote_WhenToTransferOutput =
"
ON_EXIT
"
{{/radial}}
request_memory = 31G
request_disk = 100G
getenv = True
{{^remote}}
environment =
"
CAPO_PATH=/home/casa/capo
"
requirements = (VLASS == True) && (HasLustre == True)
+partition =
"
VLASS
"
{{/remote}}
{{#remote}}
requirements = (VLASS == True) && (HasLustre =!= True)
+partition =
"
VLASS
"
Rank = (TARGET.VLASS == True) && (TARGET.VLASSTEST =!= True)
{{/remote}}
queue
"""
old_vlass_coarse_envoy_condor
=
"""
executable = vlass_coarse_envoy.sh
arguments = metadata.json PPR.xml {{requested_parallel}}
output = envoy.out
error = envoy.err
log = condor.log
VLASS_DIR = {{data_location}}
SBIN_PATH = /lustre/aoc/cluster/pipeline/$ENV(CAPO_PROFILE)/workspaces/sbin
VLASS_BIN = /lustre/aoc/cluster/pipeline/vlass_{{vlass_env}}/workspaces/bin
should_transfer_files = yes
transfer_input_files = $ENV(HOME)/.ssh/condor_transfer, nraorsync://$(SBIN_PATH)/.matplotlib, nraorsync://$(SBIN_PATH)/pycapo, nraorsync://$(SBIN_PATH)/update_stage, nraorsync://$(SBIN_PATH)/vela, nraorsync://$(SBIN_PATH)/casa_envoy, nraorsync://$(VLASS_BIN)/planescraper, nraorsync://$(VLASS_DIR)/working, nraorsync://$(VLASS_DIR)/rawdata, nraorsync://$(VLASS_DIR)/products{{#remote}}, nraorsync://$(VLASS_DIR)/{{profile}}.properties{{/remote}}, nraorsync://$(VLASS_DIR)/PPR.xml, nraorsync://$(VLASS_DIR)/metadata.json
when_to_transfer_output = ON_EXIT
transfer_output_files = .job.ad
+nrao_output_files =
"
working products planes.json
"
output_destination = nraorsync://$(VLASS_DIR)
+WantIOProxy = True
request_cpus = {{requested_parallel}}
request_memory = 150G
request_disk = 950G
getenv = True
{{^remote}}
environment =
"
CAPO_PATH=/home/casa/capo
"
requirements = (VLASS == True) && (HasLustre == True)
+partition =
"
VLASS
"
{{/remote}}
{{#remote}}
requirements = (VLASS == True)
+partition =
"
VLASS
"
Rank = (TARGET.VLASS == True) + (TARGET.VLASSTEST =!= True) + (HasLustre =!= True)
{{/remote}}
queue
"""
new_vlass_coarse_envoy_condor
=
"""
executable = vlass_coarse_envoy.sh
arguments = metadata.json PPR.xml {{requested_parallel}}
output = envoy.out
error = envoy.err
log = condor.log
VLASS_DIR = {{data_location}}
SBIN_PATH = /lustre/aoc/cluster/pipeline/$ENV(CAPO_PROFILE)/workspaces/sbin
VLASS_BIN = /lustre/aoc/cluster/pipeline/vlass_{{vlass_env}}/workspaces/bin
should_transfer_files = yes
transfer_input_files = $ENV(HOME)/.ssh/condor_transfer, nraorsync://$(SBIN_PATH)/.matplotlib, nraorsync://$(SBIN_PATH)/pycapo, nraorsync://$(SBIN_PATH)/update_stage, nraorsync://$(SBIN_PATH)/vela, nraorsync://$(SBIN_PATH)/casa_envoy, nraorsync://$(VLASS_BIN)/planescraper, nraorsync://$(VLASS_DIR)/working, nraorsync://$(VLASS_DIR)/rawdata, nraorsync://$(VLASS_DIR)/products{{#remote}}, nraorsync://$(VLASS_DIR)/{{profile}}.properties{{/remote}}, nraorsync://$(VLASS_DIR)/PPR.xml, nraorsync://$(VLASS_DIR)/metadata.json
when_to_transfer_output = ON_EXIT
transfer_output_files = .job.ad
+nrao_output_files =
"
working products planes.json
"
output_destination = nraorsync://$(VLASS_DIR)
+WantIOProxy = True
request_cpus = {{requested_parallel}}
request_memory = 150G
request_disk = 950G
getenv = True
{{^remote}}
environment =
"
CAPO_PATH=/home/casa/capo
"
requirements = (VLASS == True) && (HasLustre == True)
+partition =
"
VLASS
"
{{/remote}}
{{#remote}}
requirements = (VLASS == True) && (HasLustre =!= True)
+partition =
"
VLASS
"
Rank = (TARGET.VLASS == True) && (TARGET.VLASSTEST =!= True)
{{/remote}}
queue
"""
...
...
@@ -113,6 +274,20 @@ def upgrade():
WHERE filename=
'
vlass_seci_envoy.condor
'
"""
)
op
.
execute
(
f
"""
UPDATE workflow_templates
SET content=E
'
{
new_vlass_ql_envoy_condor
}
'
WHERE filename=
'
vlass_ql_envoy.condor
'
"""
)
op
.
execute
(
f
"""
UPDATE workflow_templates
SET content=E
'
{
new_vlass_coarse_envoy_condor
}
'
WHERE filename=
'
vlass_coarse_envoy.condor
'
"""
)
def
downgrade
():
...
...
@@ -123,3 +298,17 @@ def downgrade():
WHERE filename=
'
vlass_seci_envoy.condor
'
"""
)
op
.
execute
(
f
"""
UPDATE workflow_templates
SET content=E
'
{
old_vlass_ql_envoy_condor
}
'
WHERE filename=
'
vlass_ql_envoy.condor
'
"""
)
op
.
execute
(
f
"""
UPDATE workflow_templates
SET content=E
'
{
old_vlass_coarse_envoy_condor
}
'
WHERE filename=
'
vlass_coarse_envoy.condor
'
"""
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment