diff --git a/nmdc_automation/workflow_automation/watch_nmdc.py b/nmdc_automation/workflow_automation/watch_nmdc.py index 98797918..1f950dee 100644 --- a/nmdc_automation/workflow_automation/watch_nmdc.py +++ b/nmdc_automation/workflow_automation/watch_nmdc.py @@ -117,7 +117,10 @@ def refresh_remote_jobs(self): """ Return a filtered list of nmdc jobs. """ - filt = {"workflow.id": {"$in": self._ALLOWED}} + filt = { + "workflow.id": {"$in": self._ALLOWED}, + "claims": {"$size": 0} + } logging.debug("Looking for jobs") jobs = self.runtime_api.list_jobs(filt=filt) logging.debug(f"Found {len(jobs)} jobs")