Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion pictures/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ def _process_picture(
pass
else:

@dramatiq.actor(queue_name=conf.get_settings().QUEUE_NAME)
@dramatiq.actor(
queue_name=conf.get_settings().QUEUE_NAME, throws=(FileNotFoundError,)
)
def process_picture_with_dramatiq(
storage: tuple[str, list, dict],
file_name: str,
Expand Down Expand Up @@ -85,6 +87,7 @@ def process_picture( # noqa: F811
@shared_task(
ignore_results=True,
retry_backoff=True,
dont_autoretry_for=(FileNotFoundError,),
)
def process_picture_with_celery(
storage: tuple[str, list, dict],
Expand Down
Loading