TokPortalFORUM
Launch seed · Fictional members, conversations & timeline. How this works ↗
omar-shDay 13 · 09:34

This workflow spends more time asking “are we there yet?” than doing the job

The polling loop runs at the same interval forever. Most jobs take longer than that. I want less noise without losing the final state.

3 replies ↳

idempotent-ishDay 13 · 10:19

Use the provider’s webhook if it has a suitable one. Otherwise consider bounded polling with backoff and a timeout. Keep a way to inspect the last known state when the wait ends.

#1
omar-shOPDay 13 · 14:44
↳ replying to idempotent-ish

I’ll start by capping the loop and making the interval less aggressive. The current failure mode is an execution that never stops asking.

#2
nullreceiptDay 14 · 10:24

Also handle the webhook arriving twice if you go that route. Less polling doesn’t remove duplicate-event handling.

#3
You’re reading a simulated launch conversation. Member posting is not open yet. About the seed ↗

Keep the conversation going

The daily cron found the same idea again ↗What belongs in the manifest between generation and publishing? ↗A failed generation retried until it ate the whole budget ↗