Skip to content

Commit

Permalink
restore args in sched.main
Browse files Browse the repository at this point in the history
  • Loading branch information
mbthornton-lbl committed Nov 23, 2024
1 parent d809078 commit eda7251
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions nmdc_automation/workflow_automation/sched.py
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def main(site_conf, wf_file): # pragma: no cover
if os.environ.get("DRYRUN") == "1":
dryrun = True
skiplist = set()
# allowlist = None
allowlist = None
if os.environ.get("SKIPLISTFILE"):
with open(os.environ.get("SKIPLISTFILE")) as f:
for line in f:
Expand All @@ -336,7 +336,7 @@ def main(site_conf, wf_file): # pragma: no cover
for line in f:
allowlist.add(line.rstrip())
# for local testing
allowlist = ["nmdc:omprc-11-cegmwy02"]
# allowlist = ["nmdc:omprc-11-cegmwy02"]
while True:
sched.cycle(dryrun=dryrun, skiplist=skiplist, allowlist=allowlist)
if dryrun:
Expand All @@ -346,6 +346,5 @@ def main(site_conf, wf_file): # pragma: no cover

if __name__ == "__main__": # pragma: no cover
logging.basicConfig(level=logging.INFO)
main("/Users/MBThornton/Documents/code/nmdc_automation/.local/site_conf.toml",
"/Users/MBThornton/Documents/code/nmdc_automation/nmdc_automation/config/workflows/workflows.yaml"
)
# site_conf and wf_file are passed in as arguments
main("site_configuration.toml", "workflows.yaml")

0 comments on commit eda7251

Please sign in to comment.