Skip to content

Added code to include schedule command for plugins while generating github action #20410

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

Merged
merged 5 commits into from
Mar 7, 2023

Conversation

AltamashShaikh
Copy link
Contributor

Description:

Added code to include schedule command for plugins while generating github action.

Review

@AltamashShaikh AltamashShaikh added the Needs Review PRs that need a code review label Mar 2, 2023
Copy link
Contributor

@snake14 snake14 left a comment

Choose a reason for hiding this comment

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

Looks good 👍
I tested running the command to generate a config for a plugin and it added the schedule as expected.

@AltamashShaikh AltamashShaikh requested a review from bx80 March 3, 2023 01:31
@sgiehl
Copy link
Member

sgiehl commented Mar 3, 2023

@AltamashShaikh this looks fine. Just a general thought around that. Might it make sense to provide the cron value as parameter? That would allow us to differ it from plugin to plugin a bit. Otherwise all plugin actions would be triggered at the exact same time, causing a long action queue to block any further requests for some time.

@AltamashShaikh
Copy link
Contributor Author

@AltamashShaikh this looks fine. Just a general thought around that. Might it make sense to provide the cron value as parameter? That would allow us to differ it from plugin to plugin a bit. Otherwise all plugin actions would be triggered at the exact same time, causing a long action queue to block any further requests for some time.

@sgiehl Makes sense, will update the PR 👍

@AltamashShaikh
Copy link
Contributor Author

AltamashShaikh commented Mar 6, 2023

@sgiehl Added --schedule-cron="0 2 * * 6" option which can be used by anyone in generic

Copy link
Contributor

@bx80 bx80 left a comment

Choose a reason for hiding this comment

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

Works well for me using the new parameter. With --schedule-cron="0 3 * * 7" a cronjob is added to the test action, without the parameter no cronjob is added 👍

@bx80 bx80 merged commit 5f025e2 into 4.x-dev Mar 7, 2023
@bx80 bx80 deleted the add-schedule-github-action branch March 7, 2023 03:15
@bx80 bx80 added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Mar 7, 2023
@bx80 bx80 added this to the 4.13.4 milestone Mar 7, 2023
@bx80 bx80 removed the Needs Review PRs that need a code review label Mar 7, 2023
@bx80 bx80 added not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. and removed not-in-changelog For issues or pull requests that should not be included in our release changelog on matomo.org. labels Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Development

Successfully merging this pull request may close these issues.

4 participants