forked from mtusi2026/mtusi2026lab5
refactor
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ async def run() -> None:
|
||||
try:
|
||||
while True:
|
||||
try:
|
||||
await store.schedule_due_jobs()
|
||||
await store.schedule_due_jobs(int(os.environ.get('JOB_MAX_ATTEMPTS', '5')))
|
||||
for event in await store.due_outbox_events():
|
||||
await publish(event["payload"])
|
||||
await store.mark_outbox_published(event["id"])
|
||||
|
||||
Reference in New Issue
Block a user