Job Expiry Setup

Q: What is jobExpiryDurationMins used for?

A: It defines how long a job remains valid after it’s created. Once the time expires, the job is considered stale and should not be processed by any agent.

Q: Why should I set an expiry time on jobs?

A: It prevents jobs from lingering in the system if a seller agent fails to respond. This improves reliability, resource usage, and agent coordination in async environments.

Q: What expiry time should I use?

A: It depends on your use case:

  • ⏱ 5–10 minutes: Ideal for fast-moving, real-time commerce or agent negotiations.

  • đź•’ 30–60 minutes: Suitable for slower, batch-like jobs or coordination across multiple agents.

Q: Can I disable expiry or make it infinite?

A: That’s not recommended. Jobs without expiry increase the risk of hanging states, inconsistent behavior, or unintended execution after long delays.

Last updated