scheduleJob
Keyword
scheduleJob( jobDefinitionId: text at: instant argument: { }|nothing ): uuid | ErrorThe scheduleJob function allows Reactors to create Jobs that runs a Reactor method at a given time in the future.
Availability
| Discount | Rule | Reactor |
|---|---|---|
| ✓ |
Return Value
The return value is the ID of the Job that was created.
Error Handling
Error may be returned if the specified reactorId or method doesn't exist, or the given argument is invalid.
Examples
filtrera
from scheduleJob(
'myReactor'
'myMethod'
now + 2 hours
) match
Error |> 'An error occurred'
(jobId: uuid) |> jobId