Automation retries can create hidden extra work
Many workflow tools retry failed nodes automatically or restart an entire flow after a timeout. If each execution generates a fresh identifier, one user intent can become several paid tasks. Keep the task record and identifier outside a disposable run whenever recovery may span multiple executions.
What to do next
- 01
Build a read-only connection
Call /models and /usage before adding creation nodes. Verify that headers and credential substitution work without logging the secret or generating sample media as a connectivity test.
- 02
Gate the creation step
Quote the exact payload, compare it with the approved ceiling and dispatch with the saved identifier. Disable blind retry behavior that changes the body or request identity.
- 03
Branch on observed state
Poll existing jobs within rate limits, handle completed, failed and unknown distinctly, and download only completed content. Save a safe job identifier for later reconciliation if the flow stops.
A concrete example
Illustrative automation: a scheduled worker resumes a saved internal task and polls its existing image job. It does not run the image-creation node again simply because a previous execution ended before download.
Before you call it ready
- Credentials use protected storage.
- Workflow retries preserve task identity.
- No native callback feature is assumed.
When to stop or choose another method
If the automation tool cannot persist identifiers or distinguish uncertain acceptance, add a durable backend adapter before enabling paid generation. A linear happy-path demo is insufficient for unattended use.
