Skip to content

Plan late-join. Script CLI.

Choose a tag to compare

@pjanec pjanec released this 06 Nov 15:05
· 104 commits to 3.1 since this release

Plans

Running aps on late-joining machines

Plan now starts apps on remote machine as soon as machine connects

  • Before apps not started at all if their hosting machine connected late.

Waiting for machines to connect before starting a plan

New built-in script to start a plan as soon as all machines used in the plan are connected.

StartScript "22C526A2-6F7C-4B25-8233-7EF37619E1CB" "BuiltIns/RunPlanWhenMachinesOnline.cs" "{plan:'plan1', timeout:5}"

Scripts

Script CLI

New commands for running built-in and custom scripts inside dirigent. See docs/CLI.md and docs/Scripts.md for more details.

  • StartScript
  • KillScript
  • GetScriptState

Script API breaking changes

Method naming convention changed to match the CLI command names

  • GetAllPlanDefs -> GetAllPlansDef
  • GetAllClientStates -> GetAllClientsState
  • etc.

Script arguments as well as script results as a JSON string.

Command line options

--startupScript and --startupScriptParams

--startupScript "22C526A2-6F7C-4B25-8233-7EF37619E1CB" --startupScriptParams "{plan:'plan1', timeout:5}"

Allows running a sharedConfig-predefined script (identified by guid) on dirigent master startup.