Object -
task
:
Scheduler
Represents a ballerina task Scheduler, which can be used to run jobs periodically, using the given configurations.
Constructor
__init
(TimerConfiguration | AppointmentConfiguration configuration)
- configuration TimerConfiguration | AppointmentConfiguration
-
The
task:TimerConfiguration
ortask:AppointmentConfiguration
record to define thetask:Sceduler
behavior
Methods
service
to the task.
Parameters
- serviceToAttach service
-
Ballerina
service
object, which needs to be attached to the task
- attachments any[]
-
Set of optional parameters, which need to be passed inside the resources
-
Return Type
(SchedulerError?) A
task:SchedulerError
if the process failed due to any reason or else ()
service
from the task.
Parameters
- attachedService service
-
Ballerina
service
object, which needs to be detached from the task
-
Return Type
(SchedulerError?) A
task:SchedulerError
if the process failed due to any reason or else ()
-
Return Type
(SchedulerError?) A
task:SchedulerError
if the process failed due to any reason or else ()
-
Return Type
(SchedulerError?) A
task:SchedulerError
if the process failed due to any reason or else ()
-
Return Type
(SchedulerError?) A
task:SchedulerError
if an error is occurred while pausing or else ()
-
Return Type
(SchedulerError?) A
task:SchedulerError
when an error occurred while resuming or else ()