ModelScheduler module
Task
A model in the Scheduler module, with 28 members for templates, 29 API properties and 34 members for admin templates.
Templates view
Properties 28
Take no arguments.
-
#
getId() -
?int -
#
getName() -
?string -
#
getText() -
?string -
#
isPredefined() -
bool -
#
getQueueKey() -
?string -
#
getParameters() -
?array -
#
getInterval() -
?string -
#
getIntervalMinute() -
?string -
#
getIntervalHour() -
?string -
#
getIntervalDay() -
?string -
#
getIntervalMonth() -
?string -
#
getIntervalDayOfWeek() -
?string -
#
getPauseUntil() -
?DateTime -
#
getRecurringUntil() -
?DateTime -
#
getLastDispatched() -
?DateTime -
#
getWatermark() -
?DateTime - Returns the worker-state watermark (read-only — there is intentionally no setter). A value read from a hydrated entity may be stale in long-running worker contexts; code that needs the current value must read it via \Scheduler\Repositories\Task::findWatermark(), and the only legitimate writer is \Scheduler\Repositories\Task::casWatermark(). See the property docblock for the full rationale.
-
#
isDue() -
bool - Check whether the task is due for dispatching. Also considers "late" tasks due for dispatching on non-recurring tasks only
-
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
No members match the filter.
API & Jobs view
API & JobsEach property is a key in REST API responses and job payloads. Its name is the template getter without get, is or has. Methods that need arguments are not available here.
Properties 29
Read-only values on the record.
-
#
deleteUrlNot in Templates -
?string - Get the delete URL. Does not allow deleting pre-defined tasks - they would be re-created anyway.
-
#
id -
?int -
#
name -
?string -
#
text -
?string -
#
predefined -
bool -
#
queueKey -
?string -
#
parameters -
?array -
#
interval -
?string -
#
intervalMinute -
?string -
#
intervalHour -
?string -
#
intervalDay -
?string -
#
intervalMonth -
?string -
#
intervalDayOfWeek -
?string -
#
pauseUntil -
?DateTime -
#
recurringUntil -
?DateTime -
#
lastDispatched -
?DateTime -
#
watermark -
?DateTime - Returns the worker-state watermark (read-only — there is intentionally no setter). A value read from a hydrated entity may be stale in long-running worker contexts; code that needs the current value must read it via \Scheduler\Repositories\Task::findWatermark(), and the only legitimate writer is \Scheduler\Repositories\Task::casWatermark(). See the property docblock for the full rationale.
-
#
due -
bool - Check whether the task is due for dispatching. Also considers "late" tasks due for dispatching on non-recurring tasks only
No members match the filter.
Admin view
AdminAvailable in cdna-admin templates. Copy an admin template into your site repository to change how this record is edited.
Properties 34
Take no arguments.
-
#
getDeleteUrl()Not in Templates -
?string - Get the delete URL. Does not allow deleting pre-defined tasks - they would be re-created anyway.
-
#
getId() -
?int -
#
getName() -
?string -
#
getText() -
?string -
#
isPredefined() -
bool -
#
getQueueKey() -
?string -
#
getParameters() -
?array -
#
getInterval() -
?string -
#
getIntervalMinute() -
?string -
#
getIntervalHour() -
?string -
#
getIntervalDay() -
?string -
#
getIntervalMonth() -
?string -
#
getIntervalDayOfWeek() -
?string -
#
getPauseUntil() -
?DateTime -
#
getRecurringUntil() -
?DateTime -
#
getLastDispatched() -
?DateTime -
#
getWatermark() -
?DateTime - Returns the worker-state watermark (read-only — there is intentionally no setter). A value read from a hydrated entity may be stale in long-running worker contexts; code that needs the current value must read it via \Scheduler\Repositories\Task::findWatermark(), and the only legitimate writer is \Scheduler\Repositories\Task::casWatermark(). See the property docblock for the full rationale.
-
#
isDue() -
bool - Check whether the task is due for dispatching. Also considers "late" tasks due for dispatching on non-recurring tasks only
-
#
isHierarchicalModel()Not in API & Jobs -
bool - Check whether a model is a hierarchical model, i.e. can have children
-
#
getIntervalDescription()Admin only -
string - Get a description for the interval at which a task is scheduled
No members match the filter.