Sara Arjona
1e8ec8ef26
Merge branch 'MDL-68768-adhoc-task-faildelay-check-MOODLE_311_STABLE' of https://github.com/brendanheywood/moodle into MOODLE_311_STABLE
2021-01-12 10:07:01 +01:00
Eloy Lafuente (stronk7)
19b96bd3ba
Merge branch 'MOODLE_311_MDL-70520' of https://github.com/golenkovm/moodle into MOODLE_311_STABLE
2021-01-07 00:19:00 +01:00
Mikhail Golenkov
5623d3bae6
MDL-70520 tasks: Keep lastruntime when a scheduled task is reset
2020-12-22 15:29:02 +11:00
Brendan Heywood
2d935948ea
MDL-68768 tool_tasks: Check for failing adhoc tasks
2020-12-15 13:42:17 +11:00
Jamie Stamp
3b4eded721
MDL-70341 tasks: Allow disabled tasks to be overridden
2020-12-07 16:41:04 +00:00
Jamie Stamp
30d2f286b6
MDL-65843 tasks: Allow schedules to be overridden in config
2020-11-19 11:31:08 +08:00
Mikhail Golenkov
e419e18f0d
MDL-67211 Tasks: Add cron_enabled setting.
...
Co-authored-by: Sam Marshall <s.marshall@open.ac.uk >
2020-08-25 17:01:00 +10:00
Mikhail Golenkov
59a5923924
MDL-67211 Tasks: Record when a task is running.
...
Co-authored-by: Sam Marshall <s.marshall@open.ac.uk >
2020-08-25 16:59:47 +10:00
Peter Burnett
d369c098be
MDL-69170 task: Added timecreated field to adhoc task table
2020-08-20 08:50:42 +08:00
cescobedo
db15746c2d
MDL-63580 core_task: Deprecation cron_run_single_task and run_from_cli
...
Also we have move the functions in \tool_task\run_from_cli to \core\task\manager
and we have deprecated that class.
2020-05-11 10:53:23 +02:00
Brendan Heywood
611d6c1e29
MDL-68433 tasks: Limit the adhoc task queue look ahead
2020-04-16 23:33:07 +10:00
Tim Hunt
6fdc0f8796
MDL-68256 task admin: usability improvements
...
In the table that lists the scheduled tasks:
1. There are badges to show which components are disabled.
2. The plugin name (e.g. auth_ldap) is shown as well as the
human-readable name (e.g. LDAP server).
3. Where a time column has a non-default value, it is highlighted
and the default is shown.
4. If the fail-delay is non-zero, the cell is highlighted.
4. If you just interacted with a task (looked at or edited the settings,
did Run now, or cleared the fail delay) that row is highlighted,
and scrolled into view when the page loads.
To support this, some of the methods for loading the default tasks
have been extended with an optional argument to leave 'R' as 'R'
rather than replacing with a random number.
Also, mixed into this commit are a bunch of coding style improvements.
Sorry I did not separate them out, but ultimately this makes the
Moodle code better.
2020-03-28 18:40:51 +00:00
Mikhail Golenkov
e63040d02b
MDL-67980 tasks: Sort ad-hoc tasks by nextruntime.
2020-02-24 09:30:09 +11:00
Brendan Heywood
b0544ce211
MDL-67486 cron: Improve throughput by holding cron lock for less time
2020-01-12 01:02:57 +11:00
Andrew Nicols
217a9b1ca0
Merge branch 'master_MDL-67485' of https://github.com/golenkovm/moodle
2020-01-09 12:39:28 +08:00
Mikhail Golenkov
6b2e15f6c5
MDL-67485 task: Release the task runner lock before throwing exception.
2020-01-09 14:29:58 +11:00
Mikhail Golenkov
1d0b74b2a3
MDL-64610 task: Add support for per-task concurrency limits.
2020-01-02 16:05:47 +11:00
Brendan Heywood
c7ce7601a3
MDL-67483 tasks: Improvements to adhoc task queue at very high scale
2019-12-19 10:49:16 +10:00
Brendan Heywood
4971da0bfa
MDL-67363 task: Add adhoc task quality of service balancing
2019-12-03 12:21:10 +11:00
Andrew Nicols
b51b696927
MDL-46881 core: Allow adhoc tasks to be rescheduled
2019-01-30 10:55:48 +08:00
Andrew Nicols
8c69e86cd4
MDL-49399 task: Add admin log viewer
...
AMOS BEGIN
CPY [eventstarttime,core_calendar],[task_starttime,core_admin]
CPY [eventduration,core_calendar],[task_duration,core_admin]
CPY [result,core_cache],[task_result,core_admin]
CPY [database,install],[task_dbstats,core_admin]
CPY [fail,install],[task_result:failed,core_admin]
AMOS END
2019-01-16 12:14:25 +08:00
Andrew Nicols
4b71596fc9
MDL-49399 task: Add task logging API
2019-01-16 12:14:25 +08:00
sam marshall
470d59d31f
MDL-61063 Scheduled tasks: Add link to clear fail delay
2018-01-12 11:10:29 +00:00
Andrew Nicols
7e4c4b6f1f
MDL-59084 core: Allow adhoc tasks to run as a specified user
2017-09-12 21:58:50 +08:00
Marina Glancy
96e1633f57
MDL-59768 tasks: schedule task only if it is not scheduled
2017-08-31 14:31:17 +08:00
Ryan Wyllie
0f268f5db9
MDL-59150 admin: build site theme after CLI install or upgrade
2017-07-18 06:13:07 +00:00
Brendan Heywood
504d569b71
MDL-50719 cron: Fixed parallel task lock contention issues
2017-02-24 13:13:23 +11:00
Daniel Neis Araujo
dfb9daeae2
MDL-52385 tasks: Queue ad-hoc tasks in future
2016-04-07 11:49:52 +08:00
Michael Aherne
1dc462baa5
MDL-51707 cron: Prevent finished tasks being returned
2015-10-08 14:43:56 +01:00
Frederic Massart
b2f6f88dc2
MDL-50532 tasks: Delete obsolete tasks during upgrade
2015-07-29 11:25:16 +08:00
Ankit Agarwal
c44b4213e6
MDL-47480 tasks: Define order for getting tasks
2015-06-02 08:08:04 +05:30
Frederic Massart
3630ab92d9
MDL-47529 task: Remove usage of lock when editing a task
2015-02-12 11:16:20 +08:00
Frederic Massart
0af336ef93
MDL-47529 task: Do not use lock when updating task records
2015-02-12 11:16:20 +08:00
Frederic Massart
18247eb090
MDL-48383 task: Indicate when a task will not run if plugin is disabled
2015-01-22 11:07:52 +08:00
Ankit Agarwal
4047cd751f
MDL-48442 tasks: Make sure first run is as per schedule
2015-01-02 14:53:50 +05:30
David Mudrák
5429afc042
MDL-48156 task: Skip the scheduled task only for really disabled plugins
2014-11-10 11:09:25 +01:00
Damyon Wiese
852ff0372f
MDL-47499 tasks: Scheduled tasks custom schedule is reset on upgrade.
...
Add a unit test for reset_scheduled_tasks_for_component and make sure it doesn't clear
customised schedules for existing tasks.
2014-10-14 14:59:24 +08:00
Damyon Wiese
a0ac406055
MDL-46904 core_task: Gracefully handle rubbish entries in the tasks table.
2014-08-20 17:01:15 +08:00
Damyon Wiese
fd57c17e2d
MDL-46207 Tasks: Do not run tasks if their component is disabled.
...
This can be overridden on a per task basis by implementing:
get_run_if_component_disabled() in the scheduled task.
2014-07-21 15:01:54 +08:00
Damyon Wiese
ab57368a72
MDL-46138 tasks: The adhoc task is being too helpful with json_encoding/decoding.
2014-07-11 09:43:32 +08:00
Petr Škoda
0a5aa65b53
MDL-44733 add support for disabling of scheduled tasks
2014-03-28 10:23:37 +08:00
Petr Škoda
b7f7c3bcf2
MDL-44639 fix some phpdocs issues in tasks classes
...
There is also one extra () to improve code readability.
2014-03-20 17:32:56 +08:00
Damyon Wiese
309ae8921f
MDL-25499: Centralise management of all types of cron tasks
...
Centralise management of all types of cron tasks with registration, scheduling,
parallel task conflicts(blocking) and running once off tasks, all using an
administration screen.
This is a combination of several issues:
MDL-25502: Added "black magic" task allocator for cron
MDL-25503: Add step to cron to run all scheduled tasks
MDL-25504 cron: Refactor to use scheduler
MDL-25505: Add an admin interface to schedule tasks via cron.
MDL-25507: Add support for adhoc tasks.
2014-02-26 12:03:46 +08:00