-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Revisit the default Scheduled Jobs. Adjust the frequency… #28052
Conversation
🤖 Thank you for contributing to CiviCRM! ❤️ We will need to test and review this PR. 👷 Introduction for new contributors...
Quick links for reviewers...
|
@agileware-justin I think one of the descriptions must be too long - test fails PR@2/BKPROF/dfl/SUITES/phpunit-api3/label/bknix-tmp/junit api_v3_AllTests Started: Tue Nov 7 06:27:35 PM PST 2023###################################################################### Error in bootstrap script: PDOException: |
c895c4b
to
5f6eefa
Compare
Ta @eileenmcnaughton have reworked the descriptions. |
gt=[email_greeting or postal_greeting or addressee] required | ||
force=[0 or 1] | ||
limit=[Number] - Limit contacts to update', |
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.
However, in the description the newlines don't make much sense.
test fail doesn't look related ( - test this please ) Overall this looks like nice work - so keen to see this merged once the above feedback is worked through |
…. Remove comments from API parameters which cause the Job to not execute. Include documentation URL in job description. Add new jobs.
5f6eefa
to
6caa499
Compare
PR updated. I think it makes sense to link to the docs so people can RTFM. Have added the following new jobs:
And re-named this job: Update Individual Email Greeting |
Test fail doesn't look related ( - test this please ) |
I think this seems fine to me and noting this only affects new installs directly and I think that is fine flagging as merge ready in case anyone has any more ideas |
Some people use the Will need regen, but can be done after, just means the online demo here doesn't show the changes. |
I've added a suggested note to the dev-digest about post-install scripts that will need updating. And regen PR is at #28116 |
…. Remove comments from API parameters which cause the Job to not execute. Update description with parameters comments
Overview
CiviCRM creates default Scheduled Jobs which will not execute when enabled because the parameters include comments and/or have an invalid format. This is a common problem with new CiviCRM sites and even old ones which have been installed and the Scheduled Jobs never really checked thoroughly.
People will typically assume Scheduled Jobs are set up to work and just enable them. It happens alot.
The default frequency of some of the Scheduled Jobs is also too frequent and this PR adjusts that schedule to something more akin to what is usable in the typical shared hosting environment with limited resources.
Have added the following new jobs:
And re-named this job: Update Individual Email Greeting
Before
Some Scheduled Jobs do not work by default.
Parameters include comments.
Frequency of some Scheduled Jobs is too frequent.
Group Cache Flush job does not exist.
After
Scheduled Jobs will work by default if enabled.
Comments are moved to the Job Description.
Frequency of some Scheduled Jobs has been adjusted.
Some new Scheduled Jobs have been added, see above.
Technical Details
Comments
Happy to discuss and listen to any feedback improvements or other ways to ensure that Scheduled Jobs work out of the box.
Agileware Ref: CIVICRM-2189