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

Use exposed get_state method in run fetching #8

Merged
merged 2 commits into from
Sep 26, 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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## [UNRELEASED] neptune_airflow 1.0.1

### Changes
- Use exposed `get_state()` method during run fetching ([#8](https://github.com/neptune-ai/neptune-airflow/pull/8))


## neptune_airflow 0.1.0

### Breaking changes
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ importlib-metadata = { version = "*", python = "<3.8" }
pre-commit = { version = "*", optional = true }
pytest = { version = ">=5.0", optional = true }
pytest-cov = { version = "2.10.1", optional = true }
neptune = { version = ">=1.6.0", optional = true }
neptune = { version = ">=1.6.3", optional = true }

[tool.poetry.extras]
dev = [
Expand Down
2 changes: 1 addition & 1 deletion src/neptune_airflow/impl/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def task(**context):
Tutorial: https://docs.neptune.ai/integrations/airflow/
API reference: https://docs.neptune.ai/api/integrations/airflow/
"""
if self.run and self.run._state == ContainerState.STOPPED:
if self.run and self.run.get_state() == ContainerState.STOPPED:
self.run = None

if not self.run or self.dag_run_id != context["dag_run"].run_id:
Expand Down