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
809dc3af
Commit
809dc3af
authored
2 years ago
by
Nathan Bockisch
Browse files
Options
Downloads
Patches
Plain Diff
Added fixes from review
parent
6584ad64
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
shared/workspaces/alembic/versions/e8e6d54d8444_add_pimscache_split_workflow.py
+22
-16
22 additions, 16 deletions
...bic/versions/e8e6d54d8444_add_pimscache_split_workflow.py
with
22 additions
and
16 deletions
shared/workspaces/alembic/versions/e8e6d54d8444_add_pimscache_split_workflow.py
+
22
−
16
View file @
809dc3af
...
...
@@ -16,7 +16,7 @@ branch_labels = None
depends_on
=
None
# Main DAG for the workflow
pims_split_dag
=
"""
JOB RESTORE restore
_cms
.condor
pims_split_dag
=
"""
JOB RESTORE restore.condor
{#splits}
JOB {{.}} split_workflow.condor
...
...
@@ -30,23 +30,28 @@ PARENT SPLIT CHILD FINISH
"""
# Restore job
restore_
cms_
condor
=
"""
executable = restore
_cms
.sh
arguments = {{product_locator}} {{cal_locator}}
metadata.json PPR.xml
restore_condor
=
"""
executable = restore.sh
arguments = {{product_locator}} {{cal_locator}}
output = restore
_cms
.out
error = restore
_cms
.err
output = restore.out
error = restore.err
log = condor.log
SBIN_PATH = /lustre/aoc/cluster/pipeline/$ENV(CAPO_PROFILE)/workspaces/sbin
SPOOL_DIR = {{spool_dir}}
VLASS_DIR = {{data_location}}
should_transfer_files = yes
transfer_input_files = $ENV(HOME)/.ssh/condor_transfer, nraorsync://$(SBIN_PATH)/pycapo, nraorsync://$(SBIN_PATH)/productfetcher, nraorsync://$(SBIN_PATH)/casa_envoy
{{^existingRestore}}
transfer_input_files = $ENV(HOME)/.ssh/condor_transfer, nraorsync://$(SBIN_PATH)/pycapo, nraosync://$(VLASS_DIR)/rawdata, nraosync://$(VLASS_DIR)/products, nraosync://$(VLASS_DIR)/working, nraosync://$(VLASS_DIR)/metadata.json, nraosync://$(VLASS_DIR)/PPR.xml, nraorsync://$(SBIN_PATH)/productfetcher, nraorsync://$(SBIN_PATH)/casa_envoy, nraorsync://$(SBIN_PATH)/vela
transfer_output_files = .job.ad
+nrao_output_files =
"
rawdata
"
+nrao_output_files =
"
rawdata
working products
"
output_destination = nraorsync://$(SPOOL_DIR)
+WantIOProxy = True
{{/existingRestore}}
{{#existingRestore}}
transfer_input_files = $ENV(HOME)/.ssh/condor_transfer, nraosync://$(SBIN_PATH)/null
{{/existingRestore}}
getenv = True
environment =
"
CAPO_PATH=/home/casa/capo
"
...
...
@@ -57,16 +62,17 @@ queue
"""
restore_
cms_
sh
=
"""
#!/bin/sh
restore_sh
=
"""
#!/bin/sh
set -o errexit
cd {{data_location}}
{{^existingRestore}}
cd rawdata/
../productfetcher --product-locator $1 --product-locator $2
cd ../
./casa_envoy --restore -c $3 $4
./casa_envoy --restore -c metadata.json PPR.xml
{{/existingRestore}}
{{#existingRestore}}
./null $*
{{/existingRestore}}
"""
...
...
@@ -80,7 +86,7 @@ VLASS_DIR = {{data_location}}
SPOOL_DIR = {{spool_dir}}
PIMS_PATH = /lustre/aoc/cluster/pipeline/vlass_{{vlass_env}}/workspaces/bin
should_transfer_files = yes
transfer_input_files = $ENV(HOME)/.ssh/condor_transfer, nraorsync://$(SBIN_PATH)/casa_envoy, nraorsync://$(SBIN_PATH)/pycapo, nraorsync://$(PIMS_PATH)/pimscache, nraosync://$(VLASS_DIR)/metadata.json,
nraosync://$(VLASS_DIR)/working
nraosync://$(VLASS_DIR)/tiles/$(SPLIT_DIR)
transfer_input_files = $ENV(HOME)/.ssh/condor_transfer, nraorsync://$(SBIN_PATH)/casa_envoy,
nraorsync://$(SBIN_PATH)/vela,
nraorsync://$(SBIN_PATH)/pycapo, nraorsync://$(PIMS_PATH)/pimscache, nraosync://$(VLASS_DIR)/metadata.json, nraosync://$(VLASS_DIR)/tiles/$(SPLIT_DIR)
transfer_output_files = .job.ad
output_destination = nraorsync://$(SPOOL_DIR)
+WantIOProxy = True
...
...
@@ -106,7 +112,7 @@ PHCENTER=$(echo $1 | cut -d '/' -f 2)
# Get the measurement set path
{{^existingRestore}}
MS={{data_location}}/*.ms
MS={{data_location}}/
working/
*.ms
{{/existingRestore}}
{{#existingRestore}}
MS={{existingRestore}}
...
...
@@ -173,14 +179,14 @@ def upgrade():
op
.
execute
(
f
"""
INSERT INTO workflow_templates (filename, content, workflow_name)
VALUES (
'
restore
_cms
.condor
'
, E
'
{
restore_
cms_
condor
}
'
,
'
pims_split
'
)
VALUES (
'
restore.condor
'
, E
'
{
restore_condor
}
'
,
'
pims_split
'
)
"""
)
op
.
execute
(
f
"""
INSERT INTO workflow_templates (filename, content, workflow_name)
VALUES (
'
restore
_cms
.sh
'
, E
'
{
restore_
cms_
sh
}
'
,
'
pims_split
'
)
VALUES (
'
restore.sh
'
, E
'
{
restore_sh
}
'
,
'
pims_split
'
)
"""
)
...
...
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