Sergey Zakharchenko
09/20/2023, 8:49 AM.submit()
, and final task with wait_for
for all previous tasks. I also have decorator @task
with setting retries=0
. In addition, I explicitly switched global Prefect settings like this:
prefect config set PREFECT_FLOW_DEFAULT_RETRIES=0
prefect config set PREFECT_TASK_DEFAULT_RETRIES=0
Nevertheless, I still can see retrying
and rerunning
states of the tasks. It's happening without any messages in logs. Some tasks cannot actually finish because of "repeating". But I want tasks to be executed only once. Did I do something wrong?
Some pictures will be below ⤵️Sergey Zakharchenko
09/20/2023, 8:50 AMSerina
09/20/2023, 9:21 PMRetrying
AwaitingRetry
state?Sergey Zakharchenko
09/22/2023, 10:51 AMprefect.flow-run.Retrying
in my Events list, look at the first picture.
The interesting fact: I have flow looky_elt_prod
(whispering-carp
) with task looky-prod-tap-appmetrica-target-bigquery--flex
restarted at 061316 PM, the second picture.
And I can see only prefect.flow-run.Pending
and prefect.flow-run.Running
events, the third picture.
And later there are many prefect.flow-run.Running
again and again, 4th, 5th, 6th pictures.Serina
09/25/2023, 3:45 PMI cannot see any eventMy bad,in my Events list, look at the first picture.prefect.flow-run.Retrying
AwaitingRetry
is what I meant facepalmSerina
09/25/2023, 3:46 PMSergey Zakharchenko
09/27/2023, 7:51 AMprefect.flow-run.Running
🤔
There is an interesting point, we have RUNNING
-> RUNNING
state here:
{
"id": "0f558e6f-bb20-4731-934c-d7d28c9a5e2c",
"account": "e3cc5c8e-a339-46ff-9382-26e31cbaf166",
"event": "prefect.flow-run.Running",
"occurred": "2023-09-27T07:05:01.039Z",
"payload": {
"intended": {
"to": "RUNNING",
"from": "RUNNING"
},
"initial_state": {
"name": "Running",
"type": "RUNNING"
},
"validated_state": {
"name": "Running",
"type": "RUNNING"
}
},
"received": "2023-09-27T07:05:01.281Z",
"related": [
{
"prefect.resource.id": "prefect.flow.86900e6f-84df-4f91-a5b7-b6b7d1bf19de",
"prefect.resource.name": "looky_elt_prod",
"prefect.resource.role": "flow"
},
{
"prefect.resource.id": "prefect.deployment.3a772541-50a0-4e9d-a4aa-da914568639d",
"prefect.resource.name": "looky_elt_prod",
"prefect.resource.role": "deployment"
},
{
"prefect.resource.id": "prefect.work-queue.ab858e30-62fa-49e9-8950-3203876661bb",
"prefect.resource.name": "looky-prod",
"prefect.resource.role": "work-queue"
},
{
"prefect.resource.id": "prefect.work-pool.ee2d8837-d027-4f2f-a7ca-8b3c8ca28a05",
"prefect.resource.name": "looky-prod",
"prefect.resource.role": "work-pool"
},
{
"prefect.resource.id": "prefect.tag.0.1.42",
"prefect.resource.role": "tag"
},
{
"prefect.resource.id": "prefect.tag.auto-scheduled",
"prefect.resource.role": "tag"
},
{
"prefect.resource.id": "prefect.tag.looky-prod",
"prefect.resource.role": "tag"
},
{
"prefect.resource.id": "prefect.deployment.3a772541-50a0-4e9d-a4aa-da914568639d",
"prefect.resource.name": "looky_elt_prod",
"prefect.resource.role": "creator"
}
],
"resource": {
"prefect.state-name": "Running",
"prefect.state-type": "RUNNING",
"prefect.resource.id": "prefect.flow-run.03c28448-6763-487c-b9c5-4880c7733873",
"prefect.resource.name": "nonchalant-hog",
"prefect.state-message": "",
"prefect.state-timestamp": "2023-09-27T07:05:01.039595+00:00"
},
"workspace": "21b03e33-1cd9-4b21-9305-7e4dbb7339d9"
}
Sergey Zakharchenko
09/27/2023, 8:00 AMSerina
09/27/2023, 11:53 PMSergey Zakharchenko
10/02/2023, 7:43 AMprefect.flow-run.Running
for this flow and prefect.task-run.Running
for couple of tasks but for all!
And there are no "retrying" events at all!
😖