workflow create batch issues

hi, I sent a batch of 5,000 workflow executions, and for some reason, many of them are stuck in a "QUEUED" state. No failures, no errors --just hanging there in that state
20 Replies
Boragorn
BoragornOP2w ago
No description
Matt Silverlock
Can you provide more details? What is your account ID? What is the overall state of all of the Workflow instances?
Boragorn
BoragornOP2w ago
I believe the account id is this: 998ad664b89c2f9efa99a3b294eadd9d
Boragorn
BoragornOP2w ago
No description
Boragorn
BoragornOP2w ago
Uploading: Workflow A has not been executed yet. Pending: Workflow A executed successfully and created a new instance for Workflow B. Ready: Both Workflow A and Workflow B executed successfully. Failed: One of the steps failed, likely due to other reasons—I still need to investigate. Would it be better if there were a queue that managed the creation of workflow instances? I ran an analysis on the instances that should have been created/executed, and here are some insights:
Total Instances Analyzed: 4601

Workflow A
----------------------------------------
Status Distribution:
not_found : 2101
Completed : 1698
Queued : 802

Workflow B
----------------------------------------
Status Distribution:
25/03/2025 : 2500
not_found : 1299
Completed : 633
Errored : 159
Queued : 10
Total Instances Analyzed: 4601

Workflow A
----------------------------------------
Status Distribution:
not_found : 2101
Completed : 1698
Queued : 802

Workflow B
----------------------------------------
Status Distribution:
25/03/2025 : 2500
not_found : 1299
Completed : 633
Errored : 159
Queued : 10
about half of them were not created -- probably because I exceeded the rate limit however the ones that are queued up I don't know what's happening
Seekerdasbatatas
hum from our side seems like stuff is running right now - as a suggestion I would use the createBatch API , if possible, to reduce the number of calls and because of that we can better keep up with load for your account
Boragorn
BoragornOP2w ago
sweet -- what happens with old ones that are still queued but not running?
Boragorn
BoragornOP2w ago
No description
Boragorn
BoragornOP2w ago
all queued ones are from yesterday
Seekerdasbatatas
they should eventually run - I found some things that we can improve on our control-plane to better suit your load profile 😅 Seems like your load profile is triggering a high amount of instances at the same time and then waiting a good while until the next batch?
Boragorn
BoragornOP2w ago
sweet I've adjusted a few things on my end to start using the createBatch with 100 items per batch. Just give me a few and will let you know how it goes. Also I'm curious about a few things, is the concurrent execution limit per account or per workflow?
Seekerdasbatatas
per account atm
Boragorn
BoragornOP2w ago
mh.. look at this
{"error":"variable number must be between ?1 and ?100 at offset 618: SQLITE_ERROR"}
{"error":"variable number must be between ?1 and ?100 at offset 618: SQLITE_ERROR"}
sending 100 payloads with createBatch
Seekerdasbatatas
yeah I saw it too, sending in a fix in a few - sorry about that 😅
Boragorn
BoragornOP2w ago
all good
Seekerdasbatatas
a fix is rolled out for this, let me know if it still breaks or something else is wrong - thanks :MeowHeartCloudflare:
Boragorn
BoragornOP2w ago
sweet thanks a ton will check this out rn the batch issue has been fixed, thank you
Boragorn
BoragornOP2w ago
You can desconsider the number of queued ups, I'm cleaning this up
No description
Boragorn
BoragornOP2w ago
but as you can see the number or running instances slowly scale up it has started with 1,000 and after ~20min it's been increasing up to 2,000 I’d like to understand what the behavior or rule is for increasing the number of running executions I assume this happens automatically, but I couldn’t find more details on how it works
Boragorn
BoragornOP2w ago
sweet -- after some time it has increased
No description

Did you find this page helpful?