Official Wiki: How do I safely rename Sidekiq Worker
Say we have a OldJob
wants to rename to NewJob
.
class OldJob
end
Ship two PRs.
1st PR rename to NewJob
and all references of OldJob
and keep an name alias:
class NewJob
end
OldJob = NewJob
After all OldJob
completed. Open a second PR to remove the OldJob = NewJob
assignment.