Skip to content

Add maximum retry count migration and related logic

Tasklist

  • Add maximum retry count column to application settings
  • Add new import_status called hard_failed
  • Change the status to hard_failed when mirror failed too many times already.

Flow description

  • Mirror fails 14+ times in a row
  • Gets marked as hard_failed
  • Two messages become visible on the project interface requesting action to be taken by the user
  • User can either:
    • force the update and retry the cycle again
    • change the import_url which will force an update to happen

Future prospects

  • project admins will receive an email requesting action to be taken on the project
  • mirror retry count will become adaptive and it will be based on the backoff lower bound which will become configurable instead of a fixed number

Screenshots

Screen_Shot_2017-11-03_at_20.06.30

Screen_Shot_2017-11-03_at_20.05.53

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes #2831 and https://gitlab.com/gitlab-org/gitlab-ce/issues/33872

Edited by Douwe Maan

Merge request reports