How do I specify producer and consumer workers in TOML under an environment?

TOML continues to hurt my head and I'm struggling to bind queues within an environment. I've tried the following (both suggested by Cursor but both apparently wrong):
[env.production]
queues = {
producers = [
{ queue = "my-queue", binding = "MY_QUEUE" }
]
}
[env.production]
queues = {
producers = [
{ queue = "my-queue", binding = "MY_QUEUE" }
]
}
and
[env.production]
queues = [
{ queue = 'user-msg-ai-analysis', binding = 'USER_MSG_AI_ANALYSIS', type = "producer" }
]
[env.production]
queues = [
{ queue = 'user-msg-ai-analysis', binding = 'USER_MSG_AI_ANALYSIS', type = "producer" }
]
What's the correct syntax here?
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?