Make Cloud Run services idempotent to questions
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
toService.send_exception
- Use "answer" instead of "response" terminology in
Service