Constructor
new RedisCoordinator(options, loggeropt)
Parameters:
| Name |
Type |
Attributes |
Description |
options |
object
|
|
normalized coordination (includes .redis) |
logger |
object
|
<optional>
|
|
Methods
(async) tryAllowRun(opts) → {Promise.<object>}
- Description:
- Decide whether this node may run a scheduled job occurrence.
Parameters:
| Name |
Type |
Description |
opts |
object
|
Properties
| Name |
Type |
Attributes |
Description |
appName |
string
|
|
|
jobName |
string
|
|
|
runtime |
object
|
<optional>
|
|
|
Returns:
resolve shape: allow (boolean), reason (string), detail (string, optional)
-
Type
-
Promise.<object>