TaskManager class

The task manager allows you to manually trigger service executions of your scheduled tasks which actually ran periodically at fixed times, dates, or intervals.

Typically, a scheduled task runs according to its defined execution schedule. However, with Altogic's client API by calling the runOnce method, you can manually run scheduled tasks ahead of their actual execution schedule.

Inheritance

Constructors

TaskManager(Fetcher fetcher)
Creates an instance of TaskManager to trigger execution of scheduled tasks.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getTaskStatus(String taskId) Future<APIResponse<TaskInfo>>
Gets the latest status of the task. The last seven days task execution logs are kept. If you try to get the status of a task that has been triggered earlier, this method returns null for TaskInfo.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runOnce(String taskNameOrId) Future<APIResponse<TaskInfo>>
Triggers the execution of the specified task. After the task is triggered, the routed service defined in your scheduled task configuration is invoked. This routed service executes the task and performs necessary actions defined in its service flow.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited