[go: up one dir, main page]

Skip to content

Refactor GitHub protected branches stage to resume work from where it left off when restarted

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

This issue came out of this discussion !134949 (comment 1615909595).

About

!134949 (merged) raises the max number of Sidekiq interruptions for GitHub stage workers that are able to resume their work exactly from where they left off when they are restarted.

There are a few workers noted on that MR that do not restart exactly where they left off, so do not have the limit raised for them. Of these workers, Stage::ImportProtectedBranchesWorker (the protected branch stage worker) is one that could take a long time to complete as it pages through all branches of the GitHub repo.

Proposal

Refactor the stage worker to resume its work exactly where it left off.

And then apply the resumes_work_when_interrupted! method to it.

Edited by 🤖 GitLab Bot 🤖