mix ash_workflow.install (AshWorkflow v0.6.0)

Copy Markdown View Source

Installs AshWorkflow, along with AshOban, AshStateMachine and Oban

AshWorkflow generates ash_state_machine and ash_oban DSL for you, so this installer sets up everything those need to actually run:

  • adds ash_oban and ash_state_machine as dependencies and composes ash_oban.install, which configures Oban, the cron plugin and :ash_domains
  • adds the queue AshWorkflow's generated triggers publish to
  • imports AshWorkflow into your .formatter.exs so the workflow DSL formats without parentheses

Example

mix igniter.install ash_workflow

Options

  • --queue - the Oban queue for generated workflow triggers. Defaults to workflow, matching the DSL's default.
  • --queue-concurrency - concurrency for that queue. Defaults to 10.