Skip to content

[DO NOT MERGE] Runbook: revert celery-beat migrations in prod#230

Draft
ajeety4 wants to merge 1 commit into
mainfrom
ay/runbook-celery-migration-revert
Draft

[DO NOT MERGE] Runbook: revert celery-beat migrations in prod#230
ajeety4 wants to merge 1 commit into
mainfrom
ay/runbook-celery-migration-revert

Conversation

@ajeety4
Copy link
Copy Markdown
Contributor

@ajeety4 ajeety4 commented May 18, 2026

Summary

Test plan

  • N/A — docs-only.

🤖 Generated with Claude Code

DO NOT MERGE — opening as a draft PR purely so reviewers can comment on
the runbook used to clean up partial migration state from the failed
2026-05-18 DatabaseScheduler deploy before the file-scheduler branch
(#229) deploys.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@sravfeyn
Copy link
Copy Markdown
Member

sravfeyn commented May 19, 2026

Isn't this simply a matter of getting into the right docker instance and running below?

(Confirm an RDS snapshot exists on AWS)

# make sure we are in the right instance
./manage.py showmigrations messaging django_celery_beat 
# reset migrations
./manage.py migrate messaging 0007
./manage.py migrate django_celery_beat zero

May be claude runbook is not the right tool here given that this is a one off, one environment task?

@ajeety4
Copy link
Copy Markdown
Contributor Author

ajeety4 commented May 19, 2026

Isn't this simply a matter of getting into the right docker instance and running below?

(Confirm an RDS snapshot exists on AWS)

# make sure we are in the right instance
./manage.py showmigrations messaging django_celery_beat 
# reset migrations
./manage.py migrate messaging 0007
./manage.py migrate django_celery_beat zero

May be claude runbook is not the right tool here given that this is a one off, one environment task?

Yes. Just a correction, we need to create the right docker container.
The runbook I created just list down the steps with details, I plan to run all the steps manually.

I have updated the steps in the PR description to be run.

@ajeety4 ajeety4 requested review from sravfeyn and removed request for sravfeyn May 19, 2026 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants