Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workflow runner CLI fixes #5

Merged
merged 3 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed
- CLI `run-workflow` dropped an `s` from `json.loads`, and the help text on the
timout argument was
incorrect. ([#5](https://github.com/cirrus-geo/cirrus-mgmt/pull/5)

## [v0.1.0] - 2023-08-01

### Added
Expand Down
4 changes: 2 additions & 2 deletions src/cirrus/plugins/management/commands/manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ def refresh(deployment, stackname=None, profile=None):
"--poll-interval",
type=int,
default=WORKFLOW_POLL_INTERVAL,
help="Maximum time (seconds) to allow for the workflow to complete",
help="Time (seconds) to dwell between polling for workflow status",
)
@raw_option
@pass_deployment
def run_workflow(deployment, timeout, raw, poll_interval):
"""Pass a payload (from stdin) off to a deployment, wait for the workflow to finish,
retrieve and return its output payload"""
payload = json.load(sys.stdin.read())
payload = json.loads(sys.stdin.read())

output = deployment.run_workflow(
payload=payload,
Expand Down