Skip to content

Commit

Permalink
Merge branch 'refs/heads/submit_prod' into test_sub_crossnight
Browse files Browse the repository at this point in the history
  • Loading branch information
akremin committed Aug 15, 2024
2 parents 90dc06d + c314650 commit cd4b45e
Show file tree
Hide file tree
Showing 4 changed files with 426 additions and 99 deletions.
34 changes: 0 additions & 34 deletions bin/desi_run_prod

This file was deleted.

38 changes: 38 additions & 0 deletions bin/desi_submit_prod
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/usr/bin/env python
# coding: utf-8

import argparse

import sys
from desispec.scripts.submit_prod import submit_production

def parse_args(): # options=None):
"""
Creates an arguments parser for the desi run production
"""
parser = argparse.ArgumentParser(description="Submit a full production run of the DESI data pipeline for processing.")

parser.add_argument("-p", "--production-yaml", type=str, required=True,
help="Relative or absolute pathname to the yaml file summarizing the production.")
parser.add_argument("-p", "--queue-threshold", type=int, default=4800,
help="The number of jobs for the current user in the queue at which the"
+ " at which the script stops submitting new jobs.")

# Code Flags
parser.add_argument("--dry-run-level", type=int, default=0,
help="Perform a dry run where no jobs are actually created or submitted."
+ " Give what --dry-run-level to pass to desi_proc_night.")
# parser.add_argument("--error-if-not-available", action="store_true",
# help="Raise an error instead of reporting and moving on if an exposure "+\
# "table doesn't exist.")

args = parser.parse_args()

return args


if __name__ == '__main__':
args = parse_args()

sys.exit(submit_production(**args.__dict__))

Loading

0 comments on commit cd4b45e

Please sign in to comment.