Skip to content

Commit

Permalink
fix: retry stuck migration (#735)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Actions <[email protected]>
  • Loading branch information
ruuushhh and GitHub Actions committed Feb 5, 2025
1 parent 0ca2598 commit a2f31cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/internal/migrations/0003_auto_generated_sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ class Migration(migrations.Migration):
operations = [
migrations.RunSQL(
sql="""
INSERT INTO django_q_schedule (func, args, schedule_type, minutes, next_run, cluster)
SELECT 'apps.internal.actions.re_export_stuck_exports', NULL, 1, 180, NOW() + INTERVAL '1 minute', 'import'
INSERT INTO django_q_schedule (func, args, schedule_type, minutes, next_run, repeats, cluster)
SELECT 'apps.internal.tasks.re_export_stuck_exports', NULL, 'I', 180, NOW() + interval '1 minute', -1, 'import'
WHERE NOT EXISTS (
SELECT 1
FROM django_q_schedule
Expand Down

0 comments on commit a2f31cd

Please sign in to comment.