airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (AIRFLOW-1470) BashSensor Implementation
Date Fri, 29 Dec 2017 18:22:00 GMT


ASF subversion and git services commented on AIRFLOW-1470:

Commit b7c2f7169b44135349d42b0ddcd6805f7f9c4d6a in incubator-airflow's branch refs/heads/master
from [~DiogoAlexandreFranco]
[;h=b7c2f71 ]

[AIRFLOW-1470] Implement BashSensor operator

This sensor succeeds once a bash command/script
returns 0, and keeps poking otherwise. The
implementation is very similar to BashOperator.

Closes #2489 from diogoalexandrefranco/master

> BashSensor Implementation
> -------------------------
>                 Key: AIRFLOW-1470
>                 URL:
>             Project: Apache Airflow
>          Issue Type: Wish
>            Reporter: Diogo Franco
>            Assignee: Diogo Franco
>            Priority: Minor
>             Fix For: 2.0.0
> I propose the addition of a BashSensor operator to the core package where the poke method
looks at the return code of a bash command.
> The implementation would be similar to the execute method of the BashOperator, except
returning True/False based on the command's return code being 0 or not.
> This allows the user to easily add custom sensing logic into a DAG. It also aids new
users in quickly being able to test sensors in airflow without the need to setup any connections.

This message was sent by Atlassian JIRA

View raw message