LeKoala\SimpleJobs\SimpleJobsController
A controller that triggers the jobs from an http request
- Author: Koala
Synopsis
class SimpleJobsController
extends Controller
{
- // members
- private static string $url_segment = 'simple-jobs';
- private static array $url_handlers = ;
- private static array $allowed_actions = ;
- // methods
- public void init()
- public void index()
- public void viewlogs()
- public void trigger_manual()
- public void trigger_next_task()
- public void trigger()
- protected void isTaskDue()
- protected void runTask()
- protected void output()
- protected array allTasks()
- protected boolean basicAuth()
Hierarchy
Extends
- SilverStripe\Control\Controller
Tasks
Line | Task |
---|---|
171 | instead of running one task, we could check how much time we have |
Members
private
- $allowed_actions
- $url_handlers
- $url_segment
Methods
protected
- allTasks()
- basicAuth() — Enable BasicAuth in a similar fashion as BasicAuth class
- isTaskDue() — Determine if a task should be run
- output()
- runTask() — Checks and runs a single CronTask