-
-
Notifications
You must be signed in to change notification settings - Fork 378
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
Migrate to maintained cron lib and remove seconds #3785
Conversation
If you build an image, I can test. |
Started CI, wait a few minutes. Note that I wrote a migration that will remove the seconds, but if you revert back you have to update all crons manually and add the seconds back |
Deployment of preview was torn down |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3785 +/- ##
==========================================
- Coverage 26.89% 26.89% -0.01%
==========================================
Files 394 395 +1
Lines 27467 27484 +17
==========================================
+ Hits 7388 7391 +3
- Misses 19380 19391 +11
- Partials 699 702 +3 ☔ View full report in Codecov by Sentry. |
What about https://github.com/go-co-op/gocron? The one from gdgvda/crongdgvda/cron doesn't look that reliable as well. |
What do you mean by "reliable"? I also saw that but preferred the fork because it was much easier to migrate. But I can also use the gocron lib. Besides that, the "reliability" is not that important actually. This is done internally - the libs are only used to determine the time of the next run. |
https://github.com/go-co-op/gocron is using https://github.com/robfig/cron internally |
My main concern was the reputation of the owner/org. The repo has not many stars, the maintainer has nearly no activity on GitHub, same applies to the org. If we just use the Parser, why not embed this part in the WP code directly? The parser code wasn't touched since 4 years, even in the new fork. However, I don't have a strong opinion on this and won't block you, I'm just a bit more careful about unpopular repos/authors. |
We could also just stick to the lib as it works AFAIK and just change the format to the one without seconds. |
If we would remove seconds, this would be a breaking change and should go into 3.0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Migrating to a maintained lib is certainly a good idea - in addition to removing seconds (which are of no practical use anyway).
Co-authored-by: Patrick Schratz <patrick.schratz@gmail.com>
Use https://github.com/gdgvda/cron and remove seconds from cron syntax to use standard cron.