Repository navigation
v2.4.0
Hayhooks 2.4.0 makes a durable resume idempotent with an answer key.
Changes
Resume(answer_key=..., answer_digest=...): the store records the key in the same atomic commit that resumes the execution and keeps it while the execution lives. The same key with the same answer changes nothing, even once the execution waits again; with another answer it raisesExecutionIdempotencyConflictError(#291).answer_digest()hashes a resume input canonically.ExecutionIdempotencyConflictErrormoved tohayhooks.durable.engine; it is still importable fromhayhooks.durable.store.- Remove redundant monitoring and heartbeat work (#289).
Compatibility
Additive: nothing changes without a key. A keyed run that a worker on an older hayhooks finishes keeps its small answers hash in Redis with no expiry; upgrade every worker that shares the store.