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

Allow env variable config for cleanups #114

Merged
merged 1 commit into from
Aug 31, 2020
Merged

Allow env variable config for cleanups #114

merged 1 commit into from
Aug 31, 2020

Conversation

gadimbaylisahil
Copy link
Contributor

Refers to #110

I was thinking to add tests to CLI specs as well but think configuration is sufficient.

Copy link
Owner

@bensheldon bensheldon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fantastic. Thank you 🙌

One small change on the name and this is perfect. Thank you for tests too 💯

@@ -51,5 +51,13 @@ def poll_interval
1
).to_i
end

def before_seconds_ago
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this method should be named "cleanup_preserved_jobs_before_seconds_ago". It's a little unsymmetrical because the command line option isn't the whole phrase, but the longer phrase seems like the appropriate message to ask of the configuration object.

Copy link
Contributor Author

@gadimbaylisahil gadimbaylisahil Aug 31, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that came to my mind at first, but decided not to do as I wasn't going to change the public configuration option GoodJob asks from user.

Changed now

@bensheldon bensheldon merged commit fe2d5cb into bensheldon:main Aug 31, 2020
@gadimbaylisahil gadimbaylisahil deleted the feature/enable-env-variable-for-good-job-clean-jobs-command branch September 11, 2020 22:40
@bensheldon bensheldon added the enhancement New feature or request label Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants