Skip to content
Snippets Groups Projects
Commit 642d6b5f authored by Nathan Hertz's avatar Nathan Hertz
Browse files

Undoing a change I made in the last MR that removed the `environment`

option from the test_download workflow
parent ac70db35
No related branches found
No related tags found
1 merge request!251Add back `CAPO_PATH` env var to test_download workflow
Pipeline #1718 waiting for manual action
......@@ -16,6 +16,29 @@ depends_on = None
def upgrade():
submit_file_content = """executable = test_download.sh
arguments = {{product_locator}} {{request_id}}
output = test_download.out
error = test_download.err
log = test_download.log
SBIN_PATH = /lustre/aoc/cluster/pipeline/$ENV(CAPO_PROFILE)/workspaces/sbin
should_transfer_files = yes
transfer_input_files = $(SBIN_PATH)/productfetcher, $(SBIN_PATH)/deliver
getenv = True
environment = "CAPO_PATH=/home/casa/capo"
queue
"""
op.execute(
"UPDATE workflow_templates "
f"SET content = E'{submit_file_content}' "
"WHERE filename = 'test_download.condor'"
)
submit_file_contents = """executable = std_calibration.sh
arguments = {{product_locator}} {{request_id}} metadata.json PPR.xml
......@@ -38,6 +61,28 @@ queue
def downgrade():
submit_file_content = """executable = test_download.sh
arguments = {{product_locator}} {{request_id}}
output = test_download.out
error = test_download.err
log = test_download.log
SBIN_PATH = /lustre/aoc/cluster/pipeline/$ENV(CAPO_PROFILE)/workspaces/sbin
should_transfer_files = yes
transfer_input_files = $(SBIN_PATH)/productfetcher, $(SBIN_PATH)/deliver
getenv = True
queue
"""
op.execute(
"UPDATE workflow_templates "
f"SET content = E'{submit_file_content}' "
"WHERE filename = 'test_download.condor'"
)
submit_file_contents = """executable = std_calibration.sh
arguments = {{product_locator}} {{request_id}} metadata.json PPR.xml
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment