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
8900acde
Commit
8900acde
authored
2 years ago
by
Nathan Bockisch
Browse files
Options
Downloads
Patches
Plain Diff
Hopefully fixed DAG, null call, and redundant VLASS_DIR variable
parent
809dc3af
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
+12
-14
12 additions, 14 deletions
...bic/versions/e8e6d54d8444_add_pimscache_split_workflow.py
with
12 additions
and
14 deletions
shared/workspaces/alembic/versions/e8e6d54d8444_add_pimscache_split_workflow.py
+
12
−
14
View file @
8900acde
...
...
@@ -18,15 +18,15 @@ depends_on = None
# Main DAG for the workflow
pims_split_dag
=
"""
JOB RESTORE restore.condor
{#splits}
JOB {{.}} split
_workflow
.condor
{
{#splits}
}
JOB {{.}} split.condor
VARS {{.}} jobname=
"
$(JOB)
"
split_dir=
"
$({{.}})
"
{/splits}
{
{/splits}
}
JOB FINISH write_finished_file.condor
PARENT RESTORE CHILD
SPLIT
PARENT
SPLIT
CHILD FINISH
PARENT RESTORE CHILD
{{#splits}}{{.}}{{/splits}}
PARENT
{{#splits}}{{.}}{{/splits}}
CHILD FINISH
"""
# Restore job
...
...
@@ -39,10 +39,9 @@ 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
{{^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_input_files = $ENV(HOME)/.ssh/condor_transfer, nraorsync://$(SBIN_PATH)/pycapo, nraosync://$(
SPOOL
_DIR)/rawdata, nraosync://$(
SPOOL
_DIR)/products, nraosync://$(
SPOOL
_DIR)/working, nraosync://$(
SPOOL
_DIR)/metadata.json, nraosync://$(
SPOOL
_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 working products
"
...
...
@@ -72,21 +71,20 @@ cd ../
./casa_envoy --restore -c metadata.json PPR.xml
{{/existingRestore}}
{{#existingRestore}}
./null
$*
./null
-g
{{/existingRestore}}
"""
# Workflow run on each split
split_
workflow_
condor
=
"""
executable = split
_workflow
.sh
split_condor
=
"""
executable = split.sh
arguments =
"
$(split_dir)
"
SPLIT_DIR =
"
$(split_dir)
"
SBIN_PATH = /lustre/aoc/cluster/pipeline/$ENV(CAPO_PROFILE)/workspaces/sbin
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)/vela, nraorsync://$(SBIN_PATH)/pycapo, nraorsync://$(PIMS_PATH)/pimscache, nraosync://$(
VLASS
_DIR)/metadata.json, 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://$(
SPOOL
_DIR)/metadata.json, nraosync://$(
SPOOL
_DIR)/tiles/$(SPLIT_DIR)
transfer_output_files = .job.ad
output_destination = nraorsync://$(SPOOL_DIR)
+WantIOProxy = True
...
...
@@ -100,7 +98,7 @@ queue
"""
split_
workflow_
sh
=
"""
#!/bin/sh
split_sh
=
"""
#!/bin/sh
set -o errexit
# Something to link measurement set to rawdata directory
...
...
@@ -193,14 +191,14 @@ def upgrade():
op
.
execute
(
f
"""
INSERT INTO workflow_templates (filename, content, workflow_name)
VALUES (
'
split
_workflow
.condor
'
, E
'
{
split_
workflow_
condor
}
'
,
'
pims_split
'
)
VALUES (
'
split.condor
'
, E
'
{
split_condor
}
'
,
'
pims_split
'
)
"""
)
op
.
execute
(
f
"""
INSERT INTO workflow_templates (filename, content, workflow_name)
VALUES (
'
split
_workflow
.sh
'
, E
'
{
split_
workflow_
sh
}
'
,
'
pims_split
'
)
VALUES (
'
split.sh
'
, E
'
{
split_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