Граф коммитов

19 Коммитов

Автор SHA1 Сообщение Дата
Kamil Breguła 304cb9e685 [AIRFLOW-3744] Abandon the use of obsolete aliases of methods (#4568) 2019-01-22 15:45:12 -08:00
Stefan Seelmann 5abd19e250 [AIRFLOW-3591] Fix start date, end date, duration for rescheduled tasks (#4502)
* Use first start date when running a rescheduled task, this also fixes
  the duration. Use actual start date to record reschedule requests.
* Simplify gantt view code now that start date and duration are correct
  in `task_instance` table
2019-01-18 17:00:42 +00:00
Xiaodong ee63d0df80 [AIRFLOW-2843] Add flag in ExternalTaskSensor to check if external DAG/task exists (#4547)
In ExternalTaskSensor, it may be good to provide
an option to cease waiting immediately if the external
DAG/task specified doesn't exist.

To provide an argument "check_existence". Set to True to check
if the external DAG/task exists, and immediately cease waiting
if the external DAG/task does not exist.

The default value is set to False (no check or ceasing
will happen) so it will not affect any existing DAGs or
current user expectation.
2019-01-17 09:36:35 -08:00
Xiaodong 98982c7aaf [AIRFLOW-3709] Validate `allowed_states` for ExternalTaskSensor (#4536)
In ExternalTaskSensor, we can specify `allowed_states`.
This commit adds validation for it, so that users will not
specify any invalid state.

This change works no matter the sensor waits for a DAG or
a specific task.
2019-01-15 21:14:30 +00:00
Stefan Seelmann 098356e814 [AIRFLOW-3589] Visualize reschedule state in all views (#4408)
* [AIRFLOW-3589] Visualize reschedule state in all views

* Add explicit `UP_FOR_RESCHEDULE` state
* Add legend and CSS to views

* [AIRFLOW-3589] Visualize reschedule state in all views

* Use set or tuple instad of list
* Use `with` statement for session handling
2019-01-11 10:58:14 +01:00
Tao Feng 67572025cc [AIRFLOW-3612] Remove incubation/incubator mention (#4419) 2019-01-05 14:05:25 +00:00
Marcin Szymański 2a8c91b392 [AIRFLOW-3218] add support for poking a whole DAG (#4058)
Add support for poking a whole DAG
2018-11-05 19:36:45 +01:00
Fokko Driesprong 0e8394fd23 [AIRFLOW-3190] Make flake8 compliant (#4035)
Enforce Flake8 over the entire project
2018-10-12 22:22:52 +01:00
dima-asana 7115883faf [AIRFLOW-3168] More resillient database use in CI (#4014)
Make sure mysql is available before calling it in CI
2018-10-11 09:55:15 +01:00
Joshua Carp 3fb9776031 [AIRFLOW-3141] Add missing missing sensor tests. (#3991) 2018-10-07 16:33:44 -07:00
Fokko Driesprong 79f8ee1415 [AIRFLOW-2918] Fix Flake8 violations (#3931) 2018-09-21 15:25:54 +01:00
Stefan Seelmann dc59d7e275 [AIRFLOW-2747] Explicit re-schedule of sensors (#3596)
* [AIRFLOW-2747] Explicit re-schedule of sensors

Add `mode` property to sensors. If set to `reschedule` an
AirflowRescheduleException is raised instead of sleeping which sets
the task back to state `NONE`. Reschedules are recorded in new
`task_schedule` table and visualized in the Gantt view. New TI
dependency checks if a sensor task is ready to be re-scheduled.

* Reformat sqlalchemy imports

* Make `_handle_reschedule` private

* Remove print

* Add comment

* Add comment

* Don't record reschule request in test mode
2018-09-20 22:00:29 -07:00
Kaxil Naik 1f88a4c044
[AIRFLOW-3005] Replace 'Airbnb Airflow' with 'Apache Airflow' (#3845) 2018-09-05 01:04:42 +01:00
XD-DENG 738d27edfe [AIRFLOW-2913] Check bucket_key/bucket_name combination in S3KeySensor
When bucket_name is provided, and bucket_key is also provided as a full
S3:// url, the full_url obtained eventually will be wrong.  It will be
like 's3://bucket_name/s3://bucket_name/object_key'.

This should be avoided by adding checking and raise exception in such
case.

Closes #3762 from XD-DENG/patch-6
2018-08-17 19:45:55 +01:00
Artem Kirillov eaa03dbc74 [AIRFLOW-1786] Enforce correct behavior for soft-fail sensors
Soft-fail sensor failure causes skip of all
downstream tasks. It also enables ability to set
up non-blocking and soft-fail sensors in the same
way as for regular sensors.

Closes #3509 from artem-kirillov/AIRFLOW-1786
2018-06-17 21:47:55 +02:00
Kengo Seki caaa4a5160 [AIRFLOW-2630] Fix classname in test_sql_sensor.py
Closes #3511 from sekikn/AIRFLOW-2630
2018-06-15 20:31:55 +01:00
Giovanni Lanzani b18b437c21 [AIRFLOW-2427] Add tests to named hive sensor
Closes #3323 from gglanzani/AIRFLOW-2427
2018-05-08 12:41:51 +02:00
Bolke de Bruin c7a472ed6b [AIRFLOW-2287] Fix incorrect ASF headers
Closes #3219 from bolkedebruin/fix_header
2018-04-14 09:13:23 +02:00
Fokko Driesprong 33c7204212 [AIRFLOW-1889] Split sensors into separate files
Moving the sensors to seperate files increases
readability of the
code. Also this reduces the code in the big
core.py file.

Closes #2875 from Fokko/AIRFLOW-1889-move-sensors-
to-separate-package
2018-01-19 18:59:08 +01:00