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

Make job archive cutoff a config setting. #777

Merged

Conversation

bcipriano
Copy link
Collaborator

Link the Issue(s) this Pull Request is related to.
Fixes #776

Summarize your change.
This value has previously been hardcoded -- this moves it to opencue.properties so it can be configured via that file or via the --history.archive_jobs_cutoff_hours=N CLI flag.

@bcipriano
Copy link
Collaborator Author

@DiegoTavares @gregdenton @larsbijl @smith1511 Hi all, could I get a review on this please?

@larsbijl
Copy link
Contributor

Should we remove the DAYS_CLEAR_JOBS from the demo data?

@bcipriano
Copy link
Collaborator Author

@larsbijl I think so, yeah -- looking at the code it doesn't seem to be used.

In general I'm actually in favor of moving in the other direction -- moving config into the database so it can be easily adjusted on the fly, though I see that as a larger change needing some more discussion first.

@larsbijl
Copy link
Contributor

larsbijl commented Oct 1, 2020

LGTM

@bcipriano bcipriano merged commit 73e3606 into AcademySoftwareFoundation:master Oct 6, 2020
@bcipriano bcipriano deleted the job-archive-cutoff branch October 6, 2020 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add config setting to control length of time before jobs are archived
2 participants