marklogic-community / marklogic-state-conductor

An event-based state-machine engine for manipulating MarkLogic database documents.
Other
1 stars 4 forks source link

Scheduled Tasks (scheduler) should only operate on a single host #151

Open aclavio opened 3 years ago

aclavio commented 3 years ago

The Scheduled Tasks included with the State Conductor (schedules.sjs, and waitTask.sjs) don't utilize a host setting. This causes these tasks to be executed on all hosts of a cluster at the scheduled times. This is problematic for scheduled State Conductor scoped state machines and wait tasks. These tasks should only operate on a single host in the cluster.

see: https://github.com/marklogic-community/ml-app-deployer/wiki/Scheduled-Tasks

aclavio commented 3 years ago

The waitTask has been refactored in #179 to operate only on the local forests of a host, and thus optimized for, and intended to run on all hosts of a cluster.

As such, this task issue should only apply to the scheduler task.