Call-for-Code-for-Racial-Justice / Legit-Info

"Legit Info" app helps residents understand the impact of legislation and policies based on their country, state, county, city, district location
Apache License 2.0
67 stars 74 forks source link

Add tracking for cron jobs #167

Closed shubham599 closed 2 years ago

shubham599 commented 2 years ago

Signed-off-by: Shubham Saxena s.shubham.work@gmail.com

Contributes to #127

What did you do?

Added tracking of the cron jobs (start time, end time and number of objects processed).

Why did you do it?

There were no insights on whether the cron jobs were running or not.

How have you tested it?

Yet to test...

Were docs updated if needed?

Type of change

Checklist:

tonypearson commented 2 years ago

20 May 2022 - Discussion between Demi, Shubham, and Tony: Great idea, but we need to avoid ever-increasing database that could grow out of control/out-of-space crash condition. Suggest we create a method on the new JobDetail class such as "cleanup" which removes any records that are in excess of six months or 100,000 records, for example. This can be invoked prior to each call in each of the three batch jobs.

github-actions[bot] commented 2 years ago

:wave: Hi! This pull request has been marked stale due to inactivity. If no further activity occurs, it will automatically be closed.