Learn how cron works in GitLab
Currently there are NUMEROUS cron jobs in GitLab. I'm not familiar with how they work, what executes the cron jobs, what data these cron jobs expect to need in order to function properly. Utilize this issue to concentrate on the necessary cron jobs associated sidekiq queue project_exports
, example import_export_project_cleanup_worker
. Our concern is that we are spinning up Pods which all contain their own separate directory to store data, even if temporarily. If a cron job does execute in the correct place, the data directories will never be cleaned and eventually the Pod will be evicted by Kubernetes. Let's determine how this works so we can better understand the behavior of this mechanism.
Use learnings from this issue to better bolster our documentation and readiness review when it comes time.