Murder Chicken
Murder Chicken
CDCloudflare Developers
Created by Murder Chicken on 3/14/2025 in #workflows-beta
If I try and use cross-script calls like
Possibly. They've made multi-worker through wrangler a bit more intuitive recently (showing connection status, etc) but multi-worker local start order has always been super-confusing.
23 replies
CDCloudflare Developers
Created by Murder Chicken on 3/14/2025 in #workflows-beta
If I try and use cross-script calls like
Multi-worker support has been slow to improve. These edge-cases should be fixed soon, I'm guessing.
23 replies
CDCloudflare Developers
Created by Murder Chicken on 3/14/2025 in #workflows-beta
If I try and use cross-script calls like
I should probably report this as a bug though... it does not seem to be intended behavior. You should be able to start these up individually, like usual.
23 replies
CDCloudflare Developers
Created by Murder Chicken on 3/14/2025 in #workflows-beta
If I try and use cross-script calls like
It's the order of worker invocation in the wrangler command.
23 replies
CDCloudflare Developers
Created by Murder Chicken on 3/14/2025 in #workflows-beta
If I try and use cross-script calls like
Ok, that did work (for real this time)
23 replies
CDCloudflare Developers
Created by Murder Chicken on 3/14/2025 in #workflows-beta
If I try and use cross-script calls like
Let me try a few orders of the workers.
23 replies
CDCloudflare Developers
Created by Murder Chicken on 3/14/2025 in #workflows-beta
If I try and use cross-script calls like
Gave the illusion it was working.
23 replies
CDCloudflare Developers
Created by Murder Chicken on 3/14/2025 in #workflows-beta
If I try and use cross-script calls like
I had the wrong order in my wrangler command.
23 replies
CDCloudflare Developers
Created by Murder Chicken on 3/14/2025 in #workflows-beta
If I try and use cross-script calls like
Doh. No, I spoke too soon.
23 replies
CDCloudflare Developers
Created by Murder Chicken on 3/14/2025 in #workflows-beta
If I try and use cross-script calls like
Well what do you know. That might have worked.
23 replies
CDCloudflare Developers
Created by Murder Chicken on 3/14/2025 in #workflows-beta
If I try and use cross-script calls like
Lemme give that a shot.
23 replies
CDCloudflare Developers
Created by Murder Chicken on 3/14/2025 in #workflows-beta
If I try and use cross-script calls like
I see this when I run npx wrangler dev on Worker A just prior to getting the error too:
Your worker has access to the following bindings:
- Workflows:
- WORKFLOW_A: WorkflowA [connected to remote resource]
- WORKFLOW_B: WorkflowB (defined in workflow-b)
Your worker has access to the following bindings:
- Workflows:
- WORKFLOW_A: WorkflowA [connected to remote resource]
- WORKFLOW_B: WorkflowB (defined in workflow-b)
23 replies
CDCloudflare Developers
Created by Murder Chicken on 3/14/2025 in #workflows-beta
If I try and use cross-script calls like
Running them separately (i.e., no -c). Never had an issue before.
23 replies
CDCloudflare Developers
Created by Murder Chicken on 3/14/2025 in #workflows-beta
If I try and use cross-script calls like
Appreciate the assistance, by the way!
23 replies
CDCloudflare Developers
Created by Murder Chicken on 3/14/2025 in #workflows-beta
If I try and use cross-script calls like
To be clear: WORKER A wrangler.toml
#:schema node_modules/wrangler/config-schema.json
name = "workflow-a"
main = "src/index.ts"
compatibility_date = "2024-10-22"
compatibility_flags = ["nodejs_compat"]
upload_source_maps = true
workers_dev = false

[[workflows]]
name = "workflow-a"
binding = "WORKFLOW_A"
class_name = "WorkflowA"

[[workflows]]
name = "workflow-b"
binding = "WORKFLOW_B"
class_name = "WorkflowB"
script_name = "workflow-b"
#:schema node_modules/wrangler/config-schema.json
name = "workflow-a"
main = "src/index.ts"
compatibility_date = "2024-10-22"
compatibility_flags = ["nodejs_compat"]
upload_source_maps = true
workers_dev = false

[[workflows]]
name = "workflow-a"
binding = "WORKFLOW_A"
class_name = "WorkflowA"

[[workflows]]
name = "workflow-b"
binding = "WORKFLOW_B"
class_name = "WorkflowB"
script_name = "workflow-b"
WORKER B wrangler.toml
#:schema node_modules/wrangler/config-schema.json
name = "workflow-b"
main = "src/index.ts"
compatibility_date = "2024-10-22"
compatibility_flags = ["nodejs_compat"]
upload_source_maps = true
workers_dev = false

[[workflows]]
name = "workflow-b"
binding = "WORKFLOW_B"
class_name = "WorkflowB"
#:schema node_modules/wrangler/config-schema.json
name = "workflow-b"
main = "src/index.ts"
compatibility_date = "2024-10-22"
compatibility_flags = ["nodejs_compat"]
upload_source_maps = true
workers_dev = false

[[workflows]]
name = "workflow-b"
binding = "WORKFLOW_B"
class_name = "WorkflowB"
23 replies
CDCloudflare Developers
Created by Murder Chicken on 3/14/2025 in #workflows-beta
If I try and use cross-script calls like
The workers just house the workflows. So the wrangler name value matches the workflow name in each worker respectively.
23 replies
CDCloudflare Developers
Created by Murder Chicken on 3/14/2025 in #workflows-beta
If I try and use cross-script calls like
workflow-b
23 replies