-
Notifications
You must be signed in to change notification settings - Fork 7
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
ci: 🧪 Update cron schedule for weekly poetry bot to run every hour #1516
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -2,7 +2,8 @@ name: Weekly Poetry Update | |||||
|
||||||
on: | ||||||
schedule: | ||||||
- cron: '0 0 * * 0' # Runs every Sunday at midnight | ||||||
# - cron: '0 0 * * 0' # Runs every Sunday at midnight | ||||||
- cron: '0 * * * *' # Runs every hour | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion (performance): Reconsider the frequency of the cron job The cron schedule has been changed from weekly to hourly, which seems excessive for a 'Weekly Poetry Update'. This could lead to unnecessary resource consumption and potential rate limiting issues with external services. Consider a less frequent schedule that balances the need for updates with resource efficiency, such as daily or a few times a week. If more frequent updates are indeed necessary, please provide justification and consider the impact on system stability and any external services this job might interact with.
Suggested change
|
||||||
|
||||||
jobs: | ||||||
update-dependencies: | ||||||
|
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.
suggestion: Remove commented-out code for clarity
The original cron schedule is left in the file as a commented-out line. To improve code clarity and maintainability, consider removing this line entirely if it's no longer needed. If it's kept for reference, add a clear comment explaining why.