Skip to content

Make Cloud Run services idempotent to questions

Compare
Choose a tag to compare
@github-actions github-actions released this 10 May 16:47
c70506d

Summary

Stop Cloud Run services from running a given question more than once and rely on Pub/Sub retries for connection problems.

Contents (#446)

Enhancements

  • Increase default delivery acknowledgement deadline to 120s

Fixes

  • Acknowledge and drop questions redelivered to Cloud Run services based on their UUIDs
  • Remove redundant question retries in Service and raise error instead if the delivery acknowledgement deadline is reached

Refactoring

  • Factor out saving/updating of local metadata files
  • Rename local metadata save function
  • Rename Service.send_exception_to_asker to Service.send_exception
  • Use "answer" instead of "response" terminology in Service