You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2023/01/11 14:40:04 UTC
[GitHub] [airflow] Limess opened a new issue, #28861: EMR Step sensor incompatible with DebugExecutor
Limess opened a new issue, #28861:
URL: https://github.com/apache/airflow/issues/28861
### Apache Airflow version
2.5.0
### What happened
The EMRStepSensor is now decorated with `poke_mode_only` which only allows the mode to be set to `poke`.
However, when running this via the DebugExecutor, the poke mode is set internally to `reschedule`, which throws.
```
dags/signal_ai/data_platform/articles/offline_processing_articles_action_generation.py:9: in <module>
import signal_ai.data_platform.articles.offline_processing_articles_storage_chunking as offline_processing_articles_storage_chunking
dags/signal_ai/data_platform/articles/offline_processing_articles_storage_chunking.py:198: in <module>
emr_partitioning_group = _partition_realtime_output(article_document_type, FULL_RANGE_DAG_NAME)
dags/signal_ai/data_platform/articles/offline_processing_articles_storage_chunking.py:179: in _partition_realtime_output
return emr_partition_steps(
dags/signal_ai/data_platform/library/chunks.py:403: in emr_partition_steps
wait_for_emr_step = EmrStepSensor(
.venv/lib/python3.10/site-packages/airflow/models/baseoperator.py:390: in apply_defaults
result = func(self, **kwargs, default_args=default_args)
dags/signal_ai/data_platform/library/operators/emr_operators.py:144: in __init__
self.mode = mode
.venv/lib/python3.10/site-packages/airflow/models/baseoperator.py:990: in __setattr__
super().__setattr__(key, value)
_ = <Task(EmrStepSensor): partition_realtime_output.wait_for_emr_step>, value = 'reschedule'
def mode_setter(_, value):
if value != 'poke':
> raise ValueError("cannot set mode to 'poke'.")
E ValueError: cannot set mode to 'poke'.
.venv/lib/python3.10/site-packages/airflow/sensors/base.py:364: ValueError
```
Additionally, the message for `poke_mode_only` is incorrect - the mode can _only_ be set to `poke`.
### What you think should happen instead
The decorator should allow reschedule when in the DebugExecutor
### How to reproduce
Create an EMRStepSensor in a dag, run the dag in a DebugExecutor
### Operating System
Ubuntu 20.04.5 LTS (Focal Fossa)"
### Versions of Apache Airflow Providers
apache-airflow-providers-amazon==7.0.0
### Deployment
Other
### Deployment details
_No response_
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] eladkal commented on issue #28861: EMR Step sensor incompatible with DebugExecutor
Posted by GitBox <gi...@apache.org>.
eladkal commented on issue #28861:
URL: https://github.com/apache/airflow/issues/28861#issuecomment-1378905294
DebugExecutor is deprecated
Please see https://airflow.apache.org/docs/apache-airflow/stable/executor/debug.html#testing-dags-with-dag-test
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [airflow] eladkal closed issue #28861: EMR Step sensor incompatible with DebugExecutor
Posted by "eladkal (via GitHub)" <gi...@apache.org>.
eladkal closed issue #28861: EMR Step sensor incompatible with DebugExecutor
URL: https://github.com/apache/airflow/issues/28861
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org