Error Handling

Reminder

Principles

Example: Curo

with transaction.atomic():
    task = Task.objects.create(...) # or update some properties then task.save()
    submit_entity_unhandled()

Example: Third Party API Call

# if response data is needed
foo_id = third party POST or PATCH
save `foo_id` to local DB
# if response data is not needed
with transaction.atomic():
    local db changes()
    third party POST or PATCH

Regarding argument just put it in a queue and retry?

Answer: