Skip to content
Playground(another site)

bynk.deploy.context_in_two_groups

Error A context is listed in two [deploy.workers.<key>] groups; a context is deployed in one Worker only.

Each [deploy.workers.<key>] group becomes one Worker, and a context is deployed in exactly one Worker: its routes, its services and its agents' state belong to one script. A context listed in two groups would be deployed twice, as two copies that share nothing. List it in one group. A context in no group stays its own Worker.

Example

[deploy.workers.core]
contexts = ["shop.orders", "shop.billing"]
[deploy.workers.edge]
contexts = ["shop.orders"] // ✗ already in `core`
contexts = ["shop.gateway"] // ✓

In the Book

See also

  • Every code in its category, Deployment, on the diagnostic index.
  • bynk explain bynk.deploy.context_in_two_groups shows the same from the installed toolchain, without a network.