Allow infinite retry with logging for Celery tasks.