Periodically mark projects that are stuck in importing as failed
Projects can get stuck in the
importing state if their Sidekiq worker was killed for whatever reason without having had a change to set the status to
We can run a periodical task to check up on all import workers, and set the import status to
failed if it turns out the worker is no longer actually running, as described in https://gitlab.com/gitlab-org/gitlab-ce/issues/17709#note_24583548.
~6000 commits, ~30MB Repos import from my private Gitlab server. It failed to import and NOT be able to cancel .
I created a new project with different name, manually pushed the the repos to new project. It takes only 1-2 minutues.
I have already wait around ~10 hours to see the "import progress". Still showing "import in progress"
Just a quick guess, maybe the project status is broken and forever waiting the import progress while the import had already fail. Probably dead lock
Steps to reproduce
Import a ~6000 commits, ~30MB Repos from my private Gitlab server ( accessible only via HTTP )
As I remember, I have encountered a error page, BUT, "Start Import?" button (Red button) still able to press to trigger this bug
Able to cancel the import