A payment worker pulls jobs from a message broker and handles each one with process. The broker deletes a message only when the worker acknowledges it; if a message is still unacknowledged when its visibility timeout expires, the broker delivers it again.
While handling one job, the worker process crashes right after charge_card returns successfully.
Read worker.py. What happens when the visibility timeout for that job expires?