Skip to content

Commit

Permalink
Match was_informed_by AND workflow.type to find earlier db entries
Browse files Browse the repository at this point in the history
  • Loading branch information
mbthornton-lbl committed Nov 25, 2024
1 parent fc622db commit 85a5bac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nmdc_automation/workflow_automation/sched.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ def get_activity_id(self, wf: WorkflowConfig, informed_by: str):
# We need to see if any version exist and
# if so get its ID
ct = 0
q = {"was_informed_by": informed_by}
q = {"was_informed_by": informed_by, "type": wf.type}
for doc in self.db[wf.collection].find(q):
ct += 1
last_id = doc["id"]
Expand Down Expand Up @@ -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-13-01jx8727"]
while True:
sched.cycle(dryrun=dryrun, skiplist=skiplist, allowlist=allowlist)
if dryrun:
Expand Down

0 comments on commit 85a5bac

Please sign in to comment.