orchestra-cli 0.1.2__tar.gz → 0.1.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/PKG-INFO +1 -1
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/orchestra_cli/src/run_pipeline.py +4 -0
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/orchestra_cli/tests/test_run_pipeline.py +2 -0
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/orchestra_cli.egg-info/PKG-INFO +1 -1
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/pyproject.toml +1 -1
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/README.md +0 -0
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/orchestra_cli/src/__init__.py +0 -0
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/orchestra_cli/src/cli.py +0 -0
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/orchestra_cli/src/import_pipeline.py +0 -0
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/orchestra_cli/src/validate_pipeline.py +0 -0
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/orchestra_cli/tests/__init__.py +0 -0
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/orchestra_cli/tests/conftest.py +0 -0
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/orchestra_cli/tests/test_cli.py +0 -0
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/orchestra_cli/tests/test_import_pipeline.py +0 -0
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/orchestra_cli/tests/test_validate_pipeline.py +0 -0
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/orchestra_cli/utils/constants.py +0 -0
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/orchestra_cli/utils/git.py +0 -0
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/orchestra_cli/utils/styling.py +0 -0
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/orchestra_cli.egg-info/SOURCES.txt +0 -0
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/orchestra_cli.egg-info/dependency_links.txt +0 -0
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/orchestra_cli.egg-info/entry_points.txt +0 -0
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/orchestra_cli.egg-info/requires.txt +0 -0
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/orchestra_cli.egg-info/top_level.txt +0 -0
- {orchestra_cli-0.1.2 → orchestra_cli-0.1.3}/setup.cfg +0 -0
|
@@ -106,6 +106,7 @@ def run_pipeline(
|
|
|
106
106
|
poll_interval_seconds = 5
|
|
107
107
|
headers = {"Authorization": f"Bearer {api_key}"}
|
|
108
108
|
status_url = f"{api_prefix}/pipeline_runs/{pipeline_run_id}/status"
|
|
109
|
+
in_progress_statuses = {"RUNNING", "QUEUED", "CREATED"}
|
|
109
110
|
|
|
110
111
|
while True:
|
|
111
112
|
time.sleep(poll_interval_seconds)
|
|
@@ -158,6 +159,9 @@ def run_pipeline(
|
|
|
158
159
|
typer.echo(yellow(lineage_url))
|
|
159
160
|
raise typer.Exit(code=1)
|
|
160
161
|
|
|
162
|
+
if status_value in in_progress_statuses:
|
|
163
|
+
continue
|
|
164
|
+
|
|
161
165
|
typer.echo(
|
|
162
166
|
red(f"❌ Invalid status value: {status_value}\nResponse body: {status_body}"),
|
|
163
167
|
)
|
|
@@ -187,6 +187,7 @@ def test_run_wait_success(httpx_mock: HTTPXMock, monkeypatch, tmp_path: Path):
|
|
|
187
187
|
result.output.strip().splitlines()[1]
|
|
188
188
|
== f"Started pipeline (alias: demo), run id: {mock_pipeline_run_id}"
|
|
189
189
|
) # noqa: E501
|
|
190
|
+
assert "Invalid status value: RUNNING" not in result.output
|
|
190
191
|
assert result.output.strip().splitlines()[-2] == "✅ Pipeline succeeded"
|
|
191
192
|
assert result.output.strip().splitlines()[-1] == mock_pipeline_run_id
|
|
192
193
|
|
|
@@ -225,6 +226,7 @@ def test_run_wait_failed(httpx_mock: HTTPXMock, monkeypatch, tmp_path: Path):
|
|
|
225
226
|
|
|
226
227
|
result = runner.invoke(app, ["run", "--alias", "demo", "--wait"])
|
|
227
228
|
assert result.exit_code == 1
|
|
229
|
+
assert "Invalid status value: RUNNING" not in result.output
|
|
228
230
|
assert "status FAILED" in result.output
|
|
229
231
|
assert "/pipeline-runs/run-xyz/lineage" in result.output
|
|
230
232
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|