airflow-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Maxime Beauchemin <>
Subject Re: Custom BashSensor
Date Fri, 28 Jul 2017 16:46:38 GMT
BashSensor would be a good contribution.

I'm guessing that the reason why it doesn't exist or (PythonSensor doesn't
exist for that matter) is that it's pretty easy to derive
BaseSensorOperator and make your own. It still would be neat to have it in
the core package and in the docs.


On Fri, Jul 28, 2017 at 7:12 AM, Diogo Franco <>

> Hi,
> I was looking for a sensor that allowed me to customize the sensing logic.
> I couldn't find any way of doing this and wrote a BashSensor, which returns
> True or False based on a command/script's return code. The implementation
> is similar to the BashOperator, and it seems to me that it would fit pretty
> naturally within airflow.
> Is there another way to achieve this that I don't know about? If you think
> it is worthwhile, I'm happy to work on some tests and a PR.
> Thank you!

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message