Skip to content

Commit

Permalink
🐛 fix(bug): workqueue mandate was invalid on subject-add
Browse files Browse the repository at this point in the history
  • Loading branch information
mxchinegod committed Mar 12, 2024
1 parent cda36ad commit c7cee7e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion magnet/ic/field.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ async def on(self, category: str = 'no_category', stream: str = 'documents', cre
[x.config.subjects for x in streams if x.config.name == self.stream], [])
subjects.append(self.category)
await self.js.update_stream(StreamConfig(
name=self.stream, subjects=subjects, retention='workqueue'
name=self.stream
, subjects=subjects
, retention='workqueue' if workgroup else None
))
_f("success",
f'created [{self.category}] on\n🛰️ stream: {self.stream}')
Expand Down

0 comments on commit c7cee7e

Please sign in to comment.