Skip to content

Commit

Permalink
omicron-process: set --outdir for omicron-archive
Browse files Browse the repository at this point in the history
workflow doesn't see $OMICRON_ARCHIVE or even $HOME, so need to set it explicitly
  • Loading branch information
duncanmmacleod committed Sep 1, 2023
1 parent 1bc19c8 commit eefed7f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion omicron/cli/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -1268,9 +1268,15 @@ def main(args=None):
if newdag:
# write shell script to seed archive
with open(archivejob.get_executable(), 'w') as f:
cmd = [
prog_path["omicron_archive"],
"--indir", mergedir.absolute(),
"--outdir", os.getenv("OMICRON_ARCHIVE", const.OMICRON_ARCHIVE),
"-vv",
]
print('#!/bin/bash -e\n', file=f)
print('# Archive all trigger files saved in the merge directory ', file=f)
print(f'{prog_path["omicron_archive"]} --indir {str(mergedir.absolute())} -vv', file=f)
print(" ".join(map(str, cmd)), file=f)

os.chmod(archivejob.get_executable(), 0o755)
# write caches to disk
Expand Down

0 comments on commit eefed7f

Please sign in to comment.