microbiomedata / nmdc_automation

Prototype automation
2 stars 2 forks source link

Scheduler failing with ValueError #293

Closed mbthornton-lbl closed 5 days ago

mbthornton-lbl commented 6 days ago
root@scheduler-5b78b5c58c-z4gz5:/conf# INFO:root:Initializing Scheduler
Traceback (most recent call last):
  File "/src/nmdc_automation/models/nmdc.py", line 50, in workflow_process_factory
    cls = process_types[record["type"]]
KeyError: 'nmdc:MetagenomeSequencing'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/src/nmdc_automation/workflow_automation/sched.py", line 350, in <module>
    main()
  File "/src/nmdc_automation/workflow_automation/sched.py", line 342, in main
    sched.cycle(dryrun=dryrun, skiplist=skiplist, allowlist=allowlist)
  File "/src/nmdc_automation/workflow_automation/sched.py", line 292, in cycle
    wfp_nodes = load_workflow_process_nodes(self.db, self.workflows, allowlist)
  File "/src/nmdc_automation/workflow_automation/workflow_process.py", line 259, in load_workflow_process_nodes
    wfp_nodes = get_current_workflow_process_nodes(db, workflows, data_objs_by_id, allowlist)
  File "/src/nmdc_automation/workflow_automation/workflow_process.py", line 137, in get_current_workflow_process_nodes
    wfp_node = WorkflowProcessNode(rec, wf)
  File "/src/nmdc_automation/models/workflow.py", line 22, in __init__
    process = workflow_process_factory(record)
  File "/src/nmdc_automation/models/nmdc.py", line 52, in workflow_process_factory
    raise ValueError(f"Invalid workflow execution type: {record['type']}")
ValueError: Invalid workflow execution type: nmdc:MetagenomeSequencing