resubmit_pending_jobs
Flush all Pending jobs and resubmit them as fresh tasks.
Strategy
Snapshot every Pending job from the DB.
Purge the entire Celery queue (removes all enqueued but not-yet-started tasks).
Revoke any active/reserved/scheduled tasks whose first arg matches a pending job ID.
Delete the stale Job rows.
Recreate each Job with a clean state and fire run_multi_prediction.delay().
- Run with:
python manage.py resubmit_pending_jobs python manage.py resubmit_pending_jobs –dry-run python manage.py resubmit_pending_jobs –ids qew3T0D 9IitFoz