Tim Enders
07/29/2021, 5:45 PM[2021-07-29 12:41:09-0500] INFO - prefect.LocalDaskExecutor | Attempting to interrupt and cancel all running tasks...
Tim Enders
07/29/2021, 5:46 PMKevin Kho
Tim Enders
07/29/2021, 6:12 PMKevin Kho
RunConfig(env={PREFECT__LOGGING__LEVEL: "DEBUG"})
or you can set the env var on the agent.Tim Enders
07/29/2021, 6:22 PMflow.run()
Tim Enders
07/29/2021, 6:23 PMKevin Kho
import os
os.environ['PREFECT__LOGGING__LEVEL'] = "DEBUG"
before importing prefect. Doesn’t seem like it can be done through parametersTim Enders
07/29/2021, 6:26 PMTim Enders
07/29/2021, 6:27 PMTim Enders
07/29/2021, 7:25 PMflatten_jeson
task here doesn't seem to get data, which I think is because the flatten
call fails.
details = fetch_environment_details.map(unmapped(client), proj_envs)
real_details = really_get_the_details.map(unmapped(client), flatten(details))
flat_data = flatten_json(
flatten(real_details), "platform", "project_environment_details"
)
Tim Enders
07/29/2021, 7:25 PM2021-07-29 14:22:26-0500] INFO - prefect.TaskRunner | Task 'really_get_the_details[72976]': Finished task run for task with final state: 'Success'
[2021-07-29 14:22:26-0500] DEBUG - prefect.TaskRunner | Task 'really_get_the_details[70221]': Handling state change from Running to Success
[2021-07-29 14:22:26-0500] DEBUG - prefect.TaskRunner | Task 'really_get_the_details[78073]': Handling state change from Running to Success
[2021-07-29 14:22:26-0500] INFO - prefect.LocalDaskExecutor | Attempting to interrupt and cancel all running tasks...
[2021-07-29 14:22:33-0500] ERROR - prefect.FlowRunner | Unexpected error: TypeError("object of type 'NoneType' has no len()")
Kevin Kho
Kevin Kho
really_get_the_details
that can potentially fail?Tim Enders
07/29/2021, 7:40 PMraise_on_exception
Kevin Kho
Tim Enders
07/29/2021, 8:08 PMTim Enders
07/29/2021, 9:14 PMkilled
message when I run it with prefect run
instead of raw pythonKevin Kho
raise_on_exception
is more for stopping the Flow run abruptly instead of continuing downstream tasks when an error is raised. It does seem that the map/flatten might be null
. What was the killed
message?Tim Enders
07/29/2021, 9:18 PMTim Enders
07/29/2021, 9:28 PMTim Enders
07/29/2021, 9:30 PMKevin Kho
prefect.context.get('task_run_id')
inside the taskTim Enders
07/29/2021, 9:36 PM