Skip to content

Commit 5f6eefa

Browse files
CIVICRM-2189 Revisit the default Scheduled Jobs. Adjust the frequency. Remove comments from API parameters which cause the Job to not execute. Update description with parameters comments
1 parent f40de18 commit 5f6eefa

File tree

1 file changed

+36
-24
lines changed

1 file changed

+36
-24
lines changed

sql/civicrm_data/civicrm_job.sqldata.php

+36-24
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
[
1212
'run_frequency' => 'Daily',
1313
'name' => 'CiviCRM Update Check',
14-
'description' => 'Checks for CiviCRM version updates. Important for keeping the database secure. Also sends anonymous usage statistics to civicrm.org to to assist in prioritizing ongoing development efforts.',
15-
// FIXME: "to to"
14+
'description' => 'Checks for CiviCRM version updates. Important for keeping the database secure. Also sends anonymous usage statistics to civicrm.org to assist in prioritizing ongoing development efforts.',
1615
'api_entity' => 'Job',
1716
'api_action' => 'version_check',
1817
'is_active' => 1,
@@ -41,42 +40,45 @@
4140
[
4241
'run_frequency' => 'Daily',
4342
'name' => 'Process Pledges',
44-
'description' => 'Updates pledge records and sends out reminders',
43+
'description' => 'Updates pledge records and sends out reminders. Use parameters: send_reminders=[1 or 0], use 1 to send payment reminders',
4544
'api_entity' => 'Job',
4645
'api_action' => 'process_pledge',
47-
'parameters' => 'send_reminders=[1 or 0] optional- 1 to send payment reminders',
46+
'parameters' => 'send_reminders=0',
4847
],
4948
[
5049
'run_frequency' => 'Daily',
5150
'name' => 'Geocode and Parse Addresses',
52-
'description' => 'Retrieves geocodes (lat and long) and / or parses street addresses (populates street number, street name, etc.)',
51+
'description' => 'Geocodes and/or parses street addresses. Use parameters: geocoding=[1 or 0] required
52+
parse=[1 or 0] required
53+
start=[Starting Contact ID]
54+
end=[Ending Contact ID]
55+
throttle=[1 or 0] - 1 adds five second sleep',
5356
'api_entity' => 'Job',
5457
'api_action' => 'geocode',
55-
'parameters' => 'geocoding=[1 or 0] required
56-
parse=[1 or 0] required
57-
start=[contact ID] optional-begin with this contact ID
58-
end=[contact ID] optional-process contacts with IDs less than this
59-
throttle=[1 or 0] optional-1 adds five second sleep',
58+
'parameters' => 'geocoding=1
59+
parse=0
60+
throttle=0',
6061
],
6162
[
6263
'run_frequency' => 'Daily',
6364
'name' => 'Update Greetings and Addressees',
64-
'description' => 'Goes through contact records and updates email and postal greetings, or addressee value',
65+
'description' => 'Updates email and postal greetings, or addressee value. Use parameters: ct=[Individual or Household or Organization] required
66+
gt=[email_greeting or postal_greeting or addressee] required
67+
force=[0 or 1]
68+
limit=[Number] - Limit contacts to update',
6569
'api_entity' => 'Job',
6670
'api_action' => 'update_greeting',
67-
'parameters' => 'ct=[Individual or Household or Organization] required
68-
gt=[email_greeting or postal_greeting or addressee] required
69-
force=[0 or 1] optional-0 update contacts with null value, 1 update all
70-
limit=Number optional-Limit the number of contacts to update',
71+
'parameters' => 'ct=Individual
72+
gt=email_greeting',
7173
],
7274
[
7375
'run_frequency' => 'Daily',
7476
'name' => 'Mail Reports',
75-
'description' => 'Generates and sends out reports via email',
77+
'description' => 'Generates and sends out reports via email. Use parameters: instanceId=[ID of report instance] required
78+
format=[pdf,csv,print]',
7679
'api_entity' => 'Job',
7780
'api_action' => 'mail_report',
78-
'parameters' => 'instanceId=[ID of report instance] required
79-
format=[csv or print] optional-output CSV or print-friendly HTML, else PDF',
81+
'parameters' => '',
8082
],
8183
[
8284
'run_frequency' => 'Hourly',
@@ -107,7 +109,7 @@
107109
'api_action' => 'process_respondent',
108110
],
109111
[
110-
'run_frequency' => 'Hourly',
112+
'run_frequency' => 'Monthly',
111113
'name' => 'Clean-up Temporary Data and Files',
112114
'description' => 'Removes temporary data and files, and clears old data from cache tables. Recommend running this job every hour to help prevent database and file system bloat.',
113115
'api_entity' => 'Job',
@@ -121,12 +123,20 @@
121123
'api_action' => 'process_sms',
122124
],
123125
[
124-
'run_frequency' => 'Always',
126+
'run_frequency' => 'Hourly',
125127
'name' => 'Rebuild Smart Group Cache',
126-
'description' => 'Rebuilds the smart group cache.',
128+
'description' => 'Rebuilds the smart group cache. Use parameters: limit=Number - Limit the number of smart groups rebuild',
127129
'api_entity' => 'Job',
128130
'api_action' => 'group_rebuild',
129-
'parameters' => 'limit=Number optional-Limit the number of smart groups rebuild',
131+
'parameters' => 'limit=0',
132+
],
133+
[
134+
'run_frequency' => 'Hourly',
135+
'name' => 'Group Cache Flush',
136+
'description' => 'Flushes the Smart Group Cache',
137+
'api_entity' => 'Job',
138+
'api_action' => 'group_cache_flush',
139+
'parameters' => '',
130140
],
131141
[
132142
'run_frequency' => 'Daily',
@@ -138,9 +148,11 @@
138148
[
139149
'run_frequency' => 'Daily',
140150
'name' => 'Validate Email Address from Mailings.',
141-
'description' => 'Updates the reset_date on an email address to indicate that there was a valid delivery to this email address.',
151+
'description' => 'Updates the reset_date on an email address to indicate that there was a valid delivery to this email address. Consider mailings that have completed between minDays and maxDays. Use parameters: minDays=[number]
152+
maxDays=[number]',
142153
'api_entity' => 'Mailing',
143154
'api_action' => 'update_email_resetdate',
144-
'parameters' => 'minDays, maxDays=Consider mailings that have completed between minDays and maxDays',
155+
'parameters' => 'minDays=5
156+
maxDays=60',
145157
],
146158
]);

0 commit comments

Comments
 (0)