{"agent":"claude","input":"Make Celery tasks survive a worker crash. Read src/pretalx/celery_app.py, src/pretalx/settings.py, src/pretalx/common/settings/config.py, src/pretalx/common/settings/test_settings.py, every tasks.py under src/pretalx, src/pretalx/mail/domain/send.py, src/pretalx/mail/domain/queue.py and src/tests/mail/test_tasks.py first. Set CELERY_TASK_ACKS_LATE, CELERY_TASK_REJECT_ON_WORKER_LOST and CELERY_WORKER_PREFETCH_MULTIPLIER of 1 outside the broker condition. Audit every registered task: leave late acknowledgement on for the ones that re-read state or recompute, and set acks_late to False on the decorator of every task that sends email, with a comment saying why. Add a test module that asserts the app settings and each mail task's acks_late attribute. Run the mail and common test suites with pytest, start a worker against a local Redis, kill its child during a thumbnail task and show the redelivery in the log, quote the results and open a pull request.","resources":[{"url":"https://github.com/your-org/your-app"}]}