Ben Collier
07/07/2021, 10:58 AMKevin Kho
Ben Collier
07/07/2021, 1:54 PM@task(trigger=manual_only)
def validate_data(workflow_execution_id):
<the code>
Kevin Kho
Ben Collier
07/07/2021, 1:56 PMBen Collier
07/07/2021, 1:56 PMBen Collier
07/07/2021, 1:57 PMKevin Kho
Ben Collier
07/07/2021, 1:57 PMBen Collier
07/07/2021, 1:58 PMKevin Kho
manual_only
first, and you registered with prefect register …
on the CLI. If you just added the manual_only
, I can wondering if the prefect register
will detect that change and register.Kevin Kho
Ben Collier
07/07/2021, 2:36 PMprefect_response = client.create_flow_run(...
Kevin Kho
manual_only
registered?Ben Collier
07/07/2021, 3:05 PMwith Flow("My Flow") as flow:
ids = Parameter('ids')
task1 = task1(prefect.context.get("flow_run_id"), labSampleIds)
task2 = task2(prefect.context.get("flow_run_id"), upstream_tasks=[task1])
...
Kevin Kho
task1 = task1(prefect.context.get("flow_run_id"), labSampleIds)
, could you try a different name so they don’t hit like task_1 = task1(...)
? Unsure if this will help.Kevin Kho
flow.run
to test too like:
from prefect import Flow, task
from prefect.triggers import manual_only
@task(trigger=manual_only)
def abc(x):
return x
with Flow("test") as flow:
abc(1)
flow.run()
Kevin Kho
Ben Collier
07/07/2021, 3:16 PMBen Collier
07/07/2021, 3:16 PM