Skip to content

Commit

Permalink
feat: add skipped_states to DbtExternalSensor (#22)
Browse files Browse the repository at this point in the history
add skipped_states to DbtExternalSensor
  • Loading branch information
iJKos authored Sep 9, 2024
1 parent d6f294d commit 375669c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dbt_af/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
'conf',
]

__version__ = '0.7.1'
__version__ = '0.7.2'

from . import conf, dags # noqa
3 changes: 2 additions & 1 deletion dbt_af/operators/sensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,8 @@ def __init__(
pool=DBT_SENSOR_POOL if dbt_af_config.use_dbt_target_specific_pools else None,
mode='reschedule',
retries=max(_RETRIES_COUNT, kwargs.get('retries', 0)),
failed_states=[State.NONE, State.SKIPPED, State.FAILED, State.UPSTREAM_FAILED],
skipped_states=[State.NONE, State.SKIPPED],
failed_states=[State.FAILED, State.UPSTREAM_FAILED],
timeout=6 * 60 * 60,
poke_interval=_POKE_INTERVALS_SECONDS.get(dep_schedule.name, _DEFAULT_POKE_INTERVAL_SECONDS),
retry_delay=datetime.timedelta(seconds=60 * 30),
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "dbt-af"
version = "0.7.1"
version = "0.7.2"
description = "Distibuted dbt runs on Apache Airflow"
authors = [
"Nikita Yurasov <[email protected]>",
Expand Down

0 comments on commit 375669c

Please sign in to comment.