NYPL-Simplified / circulation

Circulation manager for Library Simplified
Other
19 stars 19 forks source link

Database vacuum #1841

Closed thinkwebengineer closed 1 year ago

thinkwebengineer commented 1 year ago

Description

Add TZ variable to allow for setting local timezone with cron. Current default is America/New_York.

Motivation and Context

This Solves the issue of the database vacuum starting at 6pm on Wednesdays because of running on UTC time

How Has This Been Tested?

This will be tested to see if it is running at the right time on the QA servers.

Checklist:

codecov[bot] commented 1 year ago

Codecov Report

Base: 92.54% // Head: 92.53% // Decreases project coverage by -0.00% :warning:

Coverage data is based on head (a0d1199) compared to base (b6777a5). Patch coverage: 0.00% of modified lines in pull request are covered.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #1841 +/- ## =========================================== - Coverage 92.54% 92.53% -0.01% =========================================== Files 215 215 Lines 43532 43535 +3 =========================================== Hits 40287 40287 - Misses 3245 3248 +3 ``` | [Impacted Files](https://codecov.io/gh/NYPL-Simplified/circulation/pull/1841?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=NYPL-Simplified) | Coverage Δ | | |---|---|---| | [core/scripts.py](https://codecov.io/gh/NYPL-Simplified/circulation/pull/1841/diff?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=NYPL-Simplified#diff-Y29yZS9zY3JpcHRzLnB5) | `86.48% <0.00%> (-0.16%)` | :arrow_down: | Help us with your feedback. Take ten seconds to tell us [how you rate us](https://about.codecov.io/nps?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=NYPL-Simplified). Have a feature suggestion? [Share it here.](https://app.codecov.io/gh/feedback/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=NYPL-Simplified)

:umbrella: View full report at Codecov.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.