Pierre CORBEL
11/08/2023, 2:22 PMraise
when the task is not good, and here is what I got
14:21:23.335 | INFO | prefect.engine - Created flow run 'hot-bullfrog' for flow 'data-refresh'
14:21:23.383 | INFO | Flow run 'hot-bullfrog' - Created task run 'wait-for-connectors-0' for task 'wait-for-connectors'
14:21:23.384 | INFO | Flow run 'hot-bullfrog' - Executing 'wait-for-connectors-0' immediately...
14:21:23.411 | ERROR | Task run 'wait-for-connectors-0' - Encountered exception during execution:
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/prefect/engine.py", line 1760, in orchestrate_task_run
result = await call.aresult()
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/prefect/_internal/concurrency/calls.py", line 291, in aresult
return await asyncio.wrap_future(self.future)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/prefect/_internal/concurrency/calls.py", line 315, in _run_sync
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/workspaces/north-star/data-tasks/data-refresh/tasks/wait_for_connectors.py", line 13, in wait_for_connectors
raise
RuntimeError: No active exception to reraise
14:21:23.431 | INFO | Task run 'wait-for-connectors-0' - Received non-final state 'AwaitingRetry' when proposing final state 'Failed' and will attempt to run again...
I want to have something like that
14:21:23.335 | INFO | prefect.engine - Created flow run 'hot-bullfrog' for flow 'data-refresh'
14:21:23.383 | INFO | Flow run 'hot-bullfrog' - Created task run 'wait-for-connectors-0' for task 'wait-for-connectors'
14:21:23.384 | INFO | Flow run 'hot-bullfrog' - Executing 'wait-for-connectors-0' immediately...
14:21:23.411 | ERROR | Task run 'wait-for-connectors-0' - Encountered exception during execution:
14:21:23.431 | INFO | Task run 'wait-for-connectors-0' - Received non-final state 'AwaitingRetry' when proposing final state 'Failed' and will attempt to run again...
Bianca Hoch
11/08/2023, 6:51 PMBianca Hoch
11/08/2023, 6:53 PMBianca Hoch
11/08/2023, 6:54 PM