Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
// This file is part of Moodle - http://moodle.org/
3
//
4
// Moodle is free software: you can redistribute it and/or modify
5
// it under the terms of the GNU General Public License as published by
6
// the Free Software Foundation, either version 3 of the License, or
7
// (at your option) any later version.
8
//
9
// Moodle is distributed in the hope that it will be useful,
10
// but WITHOUT ANY WARRANTY; without even the implied warranty of
11
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12
// GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License
15
// along with Moodle.  If not, see <http://www.gnu.org/licenses/>.
16
 
17
/**
18
 * Definition of core scheduled tasks.
19
 *
20
 * The handlers defined on this file are processed and registered into
21
 * the Moodle DB after any install or upgrade operation. All plugins
22
 * support this.
23
 *
24
 * @package   core
25
 * @category  task
26
 * @copyright 2013 Damyon Wiese
27
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
28
 */
29
 
30
defined('MOODLE_INTERNAL') || die();
31
 
32
/* List of handlers */
33
 
34
$tasks = array(
35
    array(
36
        'classname' => 'core\task\session_cleanup_task',
37
        'blocking' => 0,
38
        'minute' => '*',
39
        'hour' => '*',
40
        'day' => '*',
41
        'dayofweek' => '*',
42
        'month' => '*'
43
    ),
44
    array(
45
        'classname' => 'core\task\delete_unconfirmed_users_task',
46
        'blocking' => 0,
47
        'minute' => '0',
48
        'hour' => '*',
49
        'day' => '*',
50
        'dayofweek' => '*',
51
        'month' => '*'
52
    ),
53
    array(
54
        'classname' => 'core\task\delete_incomplete_users_task',
55
        'blocking' => 0,
56
        'minute' => '5',
57
        'hour' => '*',
58
        'day' => '*',
59
        'dayofweek' => '*',
60
        'month' => '*'
61
    ),
62
    array(
63
        'classname' => 'core\task\backup_cleanup_task',
64
        'blocking' => 0,
65
        'minute' => '10',
66
        'hour' => '*',
67
        'day' => '*',
68
        'dayofweek' => '*',
69
        'month' => '*'
70
    ),
71
    array(
72
        'classname' => 'core\task\tag_cron_task',
73
        'blocking' => 0,
74
        'minute' => 'R',
75
        'hour' => '3',
76
        'day' => '*',
77
        'dayofweek' => '*',
78
        'month' => '*'
79
    ),
80
    array(
81
        'classname' => 'core\task\context_cleanup_task',
82
        'blocking' => 0,
83
        'minute' => '25',
84
        'hour' => '*',
85
        'day' => '*',
86
        'dayofweek' => '*',
87
        'month' => '*'
88
    ),
89
    array(
90
        'classname' => 'core\task\cache_cleanup_task',
91
        'blocking' => 0,
92
        'minute' => '30',
93
        'hour' => '*',
94
        'day' => '*',
95
        'dayofweek' => '*',
96
        'month' => '*'
97
    ),
98
    array(
99
        'classname' => 'core\task\messaging_cleanup_task',
100
        'blocking' => 0,
101
        'minute' => '35',
102
        'hour' => '*',
103
        'day' => '*',
104
        'dayofweek' => '*',
105
        'month' => '*'
106
    ),
107
    array(
108
        'classname' => 'core\task\send_new_user_passwords_task',
109
        'blocking' => 0,
110
        'minute' => '*',
111
        'hour' => '*',
112
        'day' => '*',
113
        'dayofweek' => '*',
114
        'month' => '*'
115
    ),
116
    array(
117
        'classname' => 'core\task\send_failed_login_notifications_task',
118
        'blocking' => 0,
119
        'minute' => '*',
120
        'hour' => '*',
121
        'day' => '*',
122
        'dayofweek' => '*',
123
        'month' => '*'
124
    ),
125
    array(
126
        'classname' => 'core\task\create_contexts_task',
127
        'blocking' => 1,
128
        'minute' => '0',
129
        'hour' => '0',
130
        'day' => '*',
131
        'dayofweek' => '*',
132
        'month' => '*'
133
    ),
134
    array(
135
        'classname' => 'core\task\grade_cron_task',
136
        'blocking' => 0,
137
        'minute' => '*',
138
        'hour' => '*',
139
        'day' => '*',
140
        'dayofweek' => '*',
141
        'month' => '*'
142
    ),
143
    array(
144
        'classname' => 'core\task\grade_history_cleanup_task',
145
        'blocking' => 0,
146
        'minute' => '*',
147
        'hour' => '0',
148
        'day' => '*',
149
        'dayofweek' => '*',
150
        'month' => '*'
151
    ),
152
    array(
153
        'classname' => 'core\task\completion_regular_task',
154
        'blocking' => 0,
155
        'minute' => '*',
156
        'hour' => '*',
157
        'day' => '*',
158
        'dayofweek' => '*',
159
        'month' => '*'
160
    ),
161
    array(
162
        'classname' => 'core\task\completion_daily_task',
163
        'blocking' => 0,
164
        'minute' => 'R',
165
        'hour' => 'R',
166
        'day' => '*',
167
        'dayofweek' => '*',
168
        'month' => '*'
169
    ),
170
    array(
171
        'classname' => 'core\task\portfolio_cron_task',
172
        'blocking' => 0,
173
        'minute' => '*',
174
        'hour' => '*',
175
        'day' => '*',
176
        'dayofweek' => '*',
177
        'month' => '*'
178
    ),
179
    array(
180
        'classname' => 'core\task\plagiarism_cron_task',
181
        'blocking' => 0,
182
        'minute' => '*',
183
        'hour' => '*',
184
        'day' => '*',
185
        'dayofweek' => '*',
186
        'month' => '*'
187
    ),
188
    array(
189
        'classname' => 'core\task\calendar_cron_task',
190
        'blocking' => 0,
191
        'minute' => '*',
192
        'hour' => '*',
193
        'day' => '*',
194
        'dayofweek' => '*',
195
        'month' => '*'
196
    ),
197
    array(
198
        'classname' => 'core\task\blog_cron_task',
199
        'blocking' => 0,
200
        'minute' => '*',
201
        'hour' => '*',
202
        'day' => '*',
203
        'dayofweek' => '*',
204
        'month' => '*'
205
    ),
206
    array(
207
        'classname' => 'core\task\question_preview_cleanup_task',
208
        'blocking' => 0,
209
        'minute' => '*',
210
        'hour' => '*',
211
        'day' => '*',
212
        'dayofweek' => '*',
213
        'month' => '*'
214
    ),
215
    array(
216
        'classname' => 'core\task\registration_cron_task',
217
        'blocking' => 0,
218
        'minute' => 'R',
219
        'hour' => 'R',
220
        'day' => '*',
221
        'dayofweek' => 'R',
222
        'month' => '*'
223
    ),
224
    array(
225
        'classname' => 'core\task\check_for_updates_task',
226
        'blocking' => 0,
227
        'minute' => 'R',
228
        'hour' => 'R',
229
        'day' => '*',
230
        'dayofweek' => '*',
231
        'month' => '*'
232
    ),
233
    array(
234
        'classname' => 'core\task\cache_cron_task',
235
        'blocking' => 0,
236
        'minute' => '50',
237
        'hour' => '*',
238
        'day' => '*',
239
        'dayofweek' => '*',
240
        'month' => '*'
241
    ),
242
    array(
243
        'classname' => 'core\task\automated_backup_task',
244
        'blocking' => 0,
245
        'minute' => '50',
246
        'hour' => '*',
247
        'day' => '*',
248
        'dayofweek' => '*',
249
        'month' => '*'
250
    ),
251
    array(
252
        'classname' => 'core\task\badges_cron_task',
253
        'blocking' => 0,
254
        'minute' => '*/5',
255
        'hour' => '*',
256
        'day' => '*',
257
        'dayofweek' => '*',
258
        'month' => '*'
259
    ),
260
    array(
261
        'classname' => 'core\task\badges_message_task',
262
        'blocking' => 0,
263
        'minute' => '*/5',
264
        'hour' => '*',
265
        'day' => '*',
266
        'dayofweek' => '*',
267
        'month' => '*'
268
    ),
269
    array(
270
        'classname' => 'core\task\file_temp_cleanup_task',
271
        'blocking' => 0,
272
        'minute' => '55',
273
        'hour' => '*/6',
274
        'day' => '*',
275
        'dayofweek' => '*',
276
        'month' => '*'
277
    ),
278
    array(
279
        'classname' => 'core\task\file_trash_cleanup_task',
280
        'blocking' => 0,
281
        'minute' => '55',
282
        'hour' => '*/6',
283
        'day' => '*',
284
        'dayofweek' => '*',
285
        'month' => '*'
286
    ),
287
    array(
288
        'classname' => 'core\task\search_index_task',
289
        'blocking' => 0,
290
        'minute' => '*/30',
291
        'hour' => '*',
292
        'day' => '*',
293
        'dayofweek' => '*',
294
        'month' => '*'
295
    ),
296
    array(
297
        'classname' => 'core\task\search_optimize_task',
298
        'blocking' => 0,
299
        'minute' => '15',
300
        'hour' => '*/12',
301
        'day' => '*',
302
        'dayofweek' => '*',
303
        'month' => '*'
304
    ),
305
    array(
306
        'classname' => 'core\task\stats_cron_task',
307
        'blocking' => 0,
308
        'minute' => '0',
309
        'hour' => '0',
310
        'day' => '*',
311
        'dayofweek' => '*',
312
        'month' => '*'
313
    ),
314
    array(
315
        'classname' => 'core\task\password_reset_cleanup_task',
316
        'blocking' => 0,
317
        'minute' => '0',
318
        'hour' => '*/6',
319
        'day' => '*',
320
        'dayofweek' => '*',
321
        'month' => '*'
322
    ),
323
    array(
324
        'classname' => 'core\task\complete_plans_task',
325
        'blocking' => 0,
326
        'minute' => 'R',
327
        'hour' => '*',
328
        'day' => '*',
329
        'dayofweek' => '*',
330
        'month' => '*'
331
    ),
332
    array(
333
        'classname' => 'core\task\sync_plans_from_template_cohorts_task',
334
        'blocking' => 0,
335
        'minute' => 'R',
336
        'hour' => '*',
337
        'day' => '*',
338
        'dayofweek' => '*',
339
        'month' => '*'
340
    ),
341
    array(
342
        'classname' => 'core_files\task\conversion_cleanup_task',
343
        'blocking' => 0,
344
        'minute' => 'R',
345
        'hour' => '2',
346
        'day' => '*',
347
        'dayofweek' => '*',
348
        'month' => '*'
349
    ),
350
    array(
351
        'classname' => 'core\oauth2\refresh_system_tokens_task',
352
        'blocking' => 0,
353
        'minute' => '30',
354
        'hour' => '*',
355
        'day' => '*',
356
        'dayofweek' => '*',
357
        'month' => '*'
358
    ),
359
    array(
360
        'classname' => 'core\task\analytics_cleanup_task',
361
        'blocking' => 0,
362
        'minute' => '42',
363
        'hour' => '*',
364
        'day' => '*',
365
        'dayofweek' => '*',
366
        'month' => '*'
367
    ),
368
    array(
369
        'classname' => 'core\task\task_log_cleanup_task',
370
        'blocking' => 0,
371
        'minute' => 'R',
372
        'hour' => 'R',
373
        'day' => '*',
374
        'dayofweek' => '*',
375
        'month' => '*'
376
    ),
377
    array(
378
        'classname' => 'core\task\h5p_get_content_types_task',
379
        'blocking' => 0,
380
        'minute' => 'R',
381
        'hour' => 'R',
382
        'day' => '1',
383
        'dayofweek' => '*',
384
        'month' => '*'
385
    ),
386
    array(
387
        'classname' => 'core\task\h5p_clean_orphaned_records_task',
388
        'blocking' => 0,
389
        'minute' => 'R',
390
        'hour' => '0',
391
        'day' => '*',
392
        'dayofweek' => '*',
393
        'month' => '*'
394
    ),
395
    array(
396
        'classname' => 'core\task\antivirus_cleanup_task',
397
        'blocking' => 0,
398
        'minute' => 'R',
399
        'hour' => '0',
400
        'day' => '*',
401
        'dayofweek' => '*',
402
        'month' => '*',
403
    ),
404
    array(
405
        'classname' => 'core_reportbuilder\task\send_schedules',
406
        'blocking' => 0,
407
        'minute' => '*',
408
        'hour' => '*',
409
        'day' => '*',
410
        'month' => '*',
411
        'dayofweek' => '*',
412
    ),
413
    [
414
        'classname' => 'core\task\task_lock_cleanup_task',
415
        'blocking' => 0,
416
        'minute' => 'R',
417
        'hour' => '0',
418
        'day' => '*',
419
        'dayofweek' => '*',
420
        'month' => '*'
421
    ],
422
    [
423
        'classname' => 'core_xapi\task\state_cleanup_task',
424
        'blocking' => 0,
425
        'minute' => 'R',
426
        'hour' => '0',
427
        'day' => '*',
428
        'dayofweek' => '*',
429
        'month' => '*'
430
    ],
431
    [
432
        'classname' => 'core\task\show_started_courses_task',
433
        'blocking' => 0,
434
        'minute' => '00',
435
        'hour' => '01',
436
        'day' => '*',
437
        'dayofweek' => '*',
438
        'month' => '*',
439
        'disabled' => true,
440
    ],
441
    [
442
        'classname' => 'core\task\hide_ended_courses_task',
443
        'blocking' => 0,
444
        'minute' => '00',
445
        'hour' => '01',
446
        'day' => '*',
447
        'dayofweek' => '*',
448
        'month' => '*',
449
        'disabled' => true,
450
    ],
451
    [
452
        'classname' => 'core_communication\task\synchronise_providers_task',
453
        'blocking' => 0,
454
        'minute' => 'R',
455
        'hour' => 'R',
456
        'day' => '*',
457
        'dayofweek' => 'R',
458
        'month' => '*',
459
    ],
460
    [
461
        'classname' => 'core\task\automated_backup_report_task',
462
        'blocking' => 0,
463
        'minute' => '*',
464
        'hour' => '*',
465
        'day' => '*',
466
        'month' => '*',
467
        'dayofweek' => '*',
468
    ],
469
);