Skip to content

v2.4.0

Choose a tag to compare

@hjoertur-deepset hjoertur-deepset released this 27 Nov 09:09
05d903a

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 raises ExecutionIdempotencyConflictError (#291).
  • answer_digest() hashes a resume input canonically.
  • ExecutionIdempotencyConflictError moved to hayhooks.durable.engine; it is still importable from hayhooks.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.