[workflows] Segregate Jetstream consumer and producer creation/migration

Description

The current NATS migration logic does not account for whether the service is a producer (server) or a consumer (worker), which leads to a race condition on startup if both services are started with automigrate since the consumer upsert logic is not atomic.

To solve this issue, the --automigrate flag should be made contextual whether you run server or worker command.

Affects versions

None

Environment

None

Activity

Show:

Alf-Rune SiqvelandJune 2, 2023 at 10:02 AM

Fixed

Details

Assignee

Reporter

Labels

Story Points

Remaining Story Points

1

Priority

Days in progress

0

Fix versions

Sprint

Backlog

yes

Zendesk Support

Checklist

Created April 26, 2023 at 8:57 AM
Updated June 14, 2023 at 9:17 AM
Resolved June 14, 2023 at 9:17 AM