Skip to content

feat: add Mix tasks for CLI workflow management#5

Merged
kasvith merged 1 commit intomainfrom
feat/dx-cli-tools
Mar 11, 2026
Merged

feat: add Mix tasks for CLI workflow management#5
kasvith merged 1 commit intomainfrom
feat/dx-cli-tools

Conversation

@kasvith
Copy link
Contributor

@kasvith kasvith commented Mar 11, 2026

Summary

  • Add 5 Mix tasks for managing Durable workflows from the command line: durable.status, durable.list, durable.run, durable.cancel, and durable.cleanup
  • Include shared Durable.Mix.Helpers module for table formatting, ID truncation, datetime/duration formatting, and number formatting
  • Add tests for all tasks and update README with usage examples

Mix Tasks

Task Description
mix durable.status Show queue status and workflow execution summary
mix durable.list List executions with filters (status, workflow, queue, date range, JSON output)
mix durable.run Start a workflow with optional JSON input, queue, and priority
mix durable.cancel Cancel a running/pending/waiting execution with optional reason
mix durable.cleanup Batch-delete old executions with dry-run support and duration parsing

All tasks support --name for multi-tenancy (selecting a Durable instance).

Test plan

  • mix test test/mix/ passes
  • mix credo --strict passes
  • mix format --check-formatted passes
  • Manual smoke test of mix durable.status and mix durable.list against a running app

Add mix tasks for common workflow operations:
- durable.status: show queue status and workflow summary
- durable.list: list executions with filters (status, workflow, date range, JSON output)
- durable.run: start a workflow with optional JSON input
- durable.cancel: cancel a running/pending/waiting execution
- durable.cleanup: batch-delete old executions with dry-run support

Includes shared helpers module, tests for all tasks, and README documentation.
@kasvith kasvith merged commit 739bec3 into main Mar 11, 2026
2 checks passed
@kasvith kasvith deleted the feat/dx-cli-tools branch March 11, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant