A dead-lettered job: a terminal failure recorded for inspection and replay. The original job row remains (subject to retention); this entry captures why it died and, once replayed, which fresh job took its place.
| Name | Type | Description | Notes |
|---|---|---|---|
| created_at | datetime | ||
| error_message | str | [optional] | |
| id | int | ||
| job_id | str | ||
| queue_name | str | [optional] | |
| reason | str | Why the job dead-lettered: `max_attempts_exceeded`, `non_retryable`, or `handler_not_found`. | |
| replay_job_id | str | The fresh job created by the replay. | [optional] |
| replayed_at | datetime | Set once this entry has been replayed; a dead letter replays at most once. | [optional] |
| task_name | str | [optional] | |
| tenant_id | str | [optional] |
from queueflow.models.dead_letter import DeadLetter
# TODO update the JSON string below
json = "{}"
# create an instance of DeadLetter from a JSON string
dead_letter_instance = DeadLetter.from_json(json)
# print the JSON string representation of the object
print(DeadLetter.to_json())
# convert the object into a dict
dead_letter_dict = dead_letter_instance.to_dict()
# create an instance of DeadLetter from a dict
dead_letter_from_dict = DeadLetter.from_dict(dead_letter_dict)