Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement a job purging policy #70

Closed
dodobas opened this issue Apr 30, 2014 · 4 comments
Closed

Implement a job purging policy #70

dodobas opened this issue Apr 30, 2014 · 4 comments

Comments

@dodobas
Copy link
Collaborator

dodobas commented Apr 30, 2014

  • for every 'deleted' job introduce a 30 day grace period, during this grace
    period a job owner or an admin is able to toggle 'deleted' state, once the grace period ends, job, runs, and actual export data will be purged
  • for every job introduce 6 month grace period and if there are no new runs,
    toggle job 'deleted' state, effectively setting up execution of the first rule
@severinmenard
Copy link

I agree we should not keep eternally every Exports job, as many trainess are creating some that will not be sued anymore. Though there are some that are made to cover a specific location over a country (eg those you access when clicking on the markers on this umap: http://umap.openstreetmap.fr/en/map/central-african-republic_3868) and those could be maintained. Maybe create some superusers privileges for some people being able to tick a checkbox asking if the job should be maintained?

@dodobas
Copy link
Collaborator Author

dodobas commented Apr 30, 2014

for the second policy, I'm going to check if there are any new runs in the last 6 months, and if there are, the job would not be marked as 'deleted'

dodobas added a commit that referenced this issue Apr 30, 2014
dodobas added a commit that referenced this issue Apr 30, 2014
@dodobas
Copy link
Collaborator Author

dodobas commented Jul 7, 2014

Tasks:

  • update script to check/set grace period on jobs without new runs in the last 6 months
  • implement scripts as cron jobs

dodobas added a commit that referenced this issue Sep 10, 2014
@dodobas dodobas closed this as completed Sep 10, 2014
@dodobas
Copy link
Collaborator Author

dodobas commented Sep 10, 2014

cron job will execute at 01:00 every saturday

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants