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

[WGO-10] Adding command to clean old events #10

Merged
merged 8 commits into from
Jun 14, 2022
Merged

[WGO-10] Adding command to clean old events #10

merged 8 commits into from
Jun 14, 2022

Conversation

rfzanetti
Copy link
Contributor

Created command to delete all sent events that were sent longer than the period configurated on the TIME_TO_DELETE setting. This setting should be a timedelta, and, if it is not configured or its value is not a timedelta, the command will raise an AssertionError and will not run.

https://loadsmart.atlassian.net/browse/WGO-10

jaiminho/settings.py Outdated Show resolved Hide resolved
@rfzanetti rfzanetti requested a review from jrdalpra June 8, 2022 14:41
Copy link
Contributor

@gustahrodrigues gustahrodrigues left a comment

Choose a reason for hiding this comment

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

Could you please add some minimal documentation on the README about how to use it?

jaiminho/management/event_cleaner.py Outdated Show resolved Hide resolved
@rfzanetti
Copy link
Contributor Author

Could you please add some minimal documentation on the README about how to use it?

Done!

jaiminho/settings.py Outdated Show resolved Hide resolved
rfzanetti and others added 2 commits June 9, 2022 17:55
Co-authored-by: Gustavo Henrique Rodrigues Pinto Tomas <gustavo.rodrigues@loadsmart.com>
@rfzanetti rfzanetti merged commit fd32f6e into master Jun 14, 2022
@peril-loadsmart peril-loadsmart bot deleted the WGO-10 branch June 14, 2022 17:17
cristianowa pushed a commit that referenced this pull request Feb 7, 2023
[WGO-10] Adding command to clean old events
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.

None yet

4 participants