As a developer, I want the scraper script to run a shutdown sequence when the container pod is killed, So that it continues processing all messages in its send and receive queue until they are empty before shutting down.
Acceptance Criteria
When the container pod running the scraper script is killed, the script should initiate a shutdown sequence.
The shutdown sequence should ensure that all messages in the send and receive queue are processed before the script shuts down.
No messages should be lost during the shutdown process.
If processing all messages is not possible, the script should go into an error sequence, sending all messages back to Kafka.
Notes
The goal is to prevent message loss during unexpected shutdowns and maintain data integrity.
The error sequence should be designed to handle exceptions and errors during the shutdown process.
As a developer, I want the scraper script to run a shutdown sequence when the container pod is killed, So that it continues processing all messages in its send and receive queue until they are empty before shutting down.
Acceptance Criteria
Notes