hi team, I am struggling with creating/accessing database and service bindings for a workflow. Even
hi team, I am struggling with creating/accessing database and service bindings for a workflow. Even though the bindings are defined in the wrangler.toml, the only binding that is accessible during the deployment is the workflow binding, DB and AGENT_LOOP are undefined.
wrangler.toml:
[[workflows]]
name = "wf-ainf-run-snap"
binding = "RUN_SNAP_WORKFLOW"
class_name = "RunSnapWorkflow"
main = "src/index.ts"
compatibility_date = "2024-01-01"
compatibility_flags = ["nodejs_compat"]
[[d1_databases]]
binding = "DB"
database_name = "ainfiltrators"
database_id = "xxxxx"
[[services]]
binding = "AGENT_LOOP"
service = "agent-loop"
deploy output:
Your worker has access to the following bindings:
thanks in advance!
wrangler.toml:
[[workflows]]
name = "wf-ainf-run-snap"
binding = "RUN_SNAP_WORKFLOW"
class_name = "RunSnapWorkflow"
main = "src/index.ts"
compatibility_date = "2024-01-01"
compatibility_flags = ["nodejs_compat"]
[[d1_databases]]
binding = "DB"
database_name = "ainfiltrators"
database_id = "xxxxx"
[[services]]
binding = "AGENT_LOOP"
service = "agent-loop"
deploy output:
Your worker has access to the following bindings:
- Workflows:
- RUN_SNAP_WORKFLOW: RunSnapWorkflow
thanks in advance!





