Jeremy Phelps
07/16/2021, 6:45 PMQueued due to concurrency limits. The local process will attempt to run the task for the next 10 minutes, after which time it will be made available to other agents.That string does not appear in the open-source part of Prefect, so it must be part of Prefect Cloud. The concurrency limit on that task is 10, and things were working until I changed some of Dask's configuration parameters to try to resolve an issue with it. The most likely cause of the above message is that some error happened and it didn't get handled correctly. https://cloud.prefect.io/stockwell/flow-run/4460703d-3c91-4573-b85c-a4b001048999
Kevin Kho
query{
task (where: {tags: {_eq: []}}) {
flow {
id
name
}
id
name
tags
task_runs (where: {state: {_eq:"Running"}}) {
id
name
state
}
}
}
Jeremy Phelps
07/16/2021, 7:04 PMquery{
task (where: {tags: {_eq: ["staging"]}}) {
flow {
id
name
}
id
name
tags
task_runs (where: {state: {_eq:"Running"}}) {
id
name
state
}
}
}
...and it returned no tasks.Jeremy Phelps
07/16/2021, 7:05 PMJeremy Phelps
07/16/2021, 7:06 PM[2021-07-16 13:12:55-0500] INFO - prefect.CloudFlowRunner | Beginning Flow run for 'demand-forecasting-delivery-scheduler'
[2021-07-16 13:12:55-0500] INFO - prefect.DaskExecutor | Connecting to an existing Dask cluster at <tcp://dask-scheduler:8786>
Jeremy Phelps
07/16/2021, 7:15 PMnicholas
query{
task (where: {tags: {_eq: ["staging"]}}) {
id
name
tags
task_runs (where: {state: {_in:["Running", "Submitted", "Queued", "Cancelling", "Retrying", "Resume", "Paused"]}}) {
id
name
state
}
}
}
Jeremy Phelps
07/16/2021, 7:18 PMnicholas
Jeremy Phelps
07/16/2021, 7:21 PMtask
token returns something, but Slack won't let me send it.Jeremy Phelps
07/16/2021, 7:22 PMnicholas
staging
is the tag you're having issues with, yeah? (Prefect employees can't see your UI links, just fyi)Jeremy Phelps
07/16/2021, 7:26 PMJeremy Phelps
07/16/2021, 7:27 PMnicholas
Jeremy Phelps
07/16/2021, 9:59 PMnicholas
10
on a tag called mysql-write
, and you already have 10 tasks in a running
state with that tag; the tasks in the flow run you provided also have the mysql-write
tag and are queued correctly as a result. There are no tasks with a staging
tag and no concurrency limits with that tag either. One thing I did notice is that the tasks in running
states don't all come from the same flow run, which could be causing the confusionJeremy Phelps
07/16/2021, 10:06 PMnicholas
Jeremy Phelps
07/16/2021, 10:08 PMJeremy Phelps
07/16/2021, 10:11 PMJeremy Phelps
07/16/2021, 10:12 PMnicholas
nicholas
Jeremy Phelps
07/16/2021, 10:16 PMnicholas
Jeremy Phelps
07/16/2021, 10:36 PMnicholas
Jeremy Phelps
07/16/2021, 11:00 PMJeremy Phelps
07/16/2021, 11:01 PMset_task_run_states
mutation?nicholas
mutation {
set_task_run_states(input: {states: [{task_run_id: "<<task run states>>", state: "{\"type\": \"Failed\", \"message\": \"<<your message>>\"}"}]}) {
states {
id
status
}
}
}
nicholas
state
field, which is a JSON payloadJeremy Phelps
07/16/2021, 11:06 PMstate
.Jeremy Phelps
07/16/2021, 11:06 PMJeremy Phelps
07/16/2021, 11:07 PM