← Back to Common Patterns Common Patterns

Runaway loops and retries

Cause type
Direct
Creatures
Loopuff (#3), Scalix (#2), Promptle (#9)

Description

Work is repeated unintentionally: a function re-triggered by its own or an unrelated output, failed messages retried repeatedly, agents calling models in loops.

How it leads to the creature

Each repeat is billed (per execution, per action, per node-hour or per token). Retries can also hold capacity up, as in Scalix.

Examples

  • Loopuff: a backup script that re-uploaded all earlier files each hour to a storage account that triggered a function on every upload; about $4k over a weekend.
  • Scalix: writes to an undersized database failed and were retried until dead lettered, keeping the plan scaled out for hours.
  • Promptle: causes include agent loops and retries, and an agent making many calls per job in the PoC.

Related patterns