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

6566 Коммитов

Автор SHA1 Сообщение Дата
Jarek Potiuk 8f41eb75ad [AIRFLOW-4905] Add colours to flake8 output (#5541) 2019-07-11 14:06:44 +01:00
eladkal fb93df142b [AIRFLOW-3495] Validate one of query and query_uri passed to DataProcSparkSqlOperator (#5510)
DataProcSparkSqlOperator and DataProcHiveOperator are working either with query
or query_uri. Passing both doesn't make sense so check at construction time.
2019-07-11 13:52:46 +01:00
Facu b516183d68 [AIRFLOW-4868] Fix typo in kubernetes/docker/build.sh (#5505) 2019-07-11 11:33:35 +01:00
Felix Uellendall b49cbdd237 [AIRFLOW-4925] Improve css style for Variables Import file field (#5552) 2019-07-11 11:27:46 +01:00
Bluesn0w d1be189b9a [AIRFLOW-XXX] Add Caesars Entertainment to list of users (#5536)
[ci-skip]
2019-07-11 11:24:53 +01:00
Andrii Soldatenko f45ae7ed39 [AIRFLOW-3761] Skip drop constraint for SQLlite, not necessary (#5538) 2019-07-11 11:24:07 +01:00
Fokko Driesprong 516e017cff [AIRFLOW-4906] Improve debugging for the SparkSubmitHook (#5542) 2019-07-11 11:22:20 +01:00
Matthew Rastovac f340a81133 [AIRFLOW-4904] Retrieve test config file from $AIRFLOW_TEST_CONFIG (#5540)
It defaults to the same location but this allows the location to be changed.

We may remove this test config file entirely in the future, but for now this lets the
location of this file be controlled.
2019-07-11 11:20:58 +01:00
smogili1 356b7fe756 [AIRFLOW-XXX] adding a Cryptalizer.com to list of companies (#5529)
[ci-skip]
2019-07-11 11:16:34 +01:00
Bhavika Tekwani 10570ef9fa [AIRFLOW-4587] Replace self.conn with self.get_conn() in AWSAthenaHook (#5545) 2019-07-11 11:13:36 +01:00
Felix Uellendall 5aaeb721ce [AIRFLOW-4926] Fix example dags where its start_date is datetime.utcnow() (#5553) 2019-07-11 14:13:27 +08:00
eladkal 6de4ba3313 [AIRFLOW-4919] DataProcJobBaseOperator dataproc_properties templated (#5554)
* [AIRFLOW-4919] DataProcJobBaseOperator change dataproc_properties to be templated

Add dataproc_properties to templated fields.
2019-07-10 21:40:32 +02:00
Andrii Soldatenko a1f9d9a03f [AIRFLOW-4911] Silence the FORBIDDEN errors from the KubernetesExecutor (#5547)
* [AIRFLOW-4911] Silence the FORBIDDEN errors from the KubernetesExecutor

* switch to WARN

* add to show message from ApiException
2019-07-08 16:04:05 -07:00
Christopher Alcock 9d92eae22e [AIRFLOW-XXX] Adds Beamly to the list of users (#5537) 2019-07-08 10:27:26 -07:00
Canh Duong 7577fef9e4 [AIRLFOW-XXX] Add Revolut to the list of Airflow users (#5544) 2019-07-07 21:03:15 -07:00
Luqman Abdul Mushawwir 2b366934cd [AIRFLOW-4900] Resolve incompatible version of Werkzeug (#5535)
* [AIRFLOW-4900] Resolve incompatible version of Werkzeug

Pin Werkzeug version to >= 0.15 as flask requirement needs it.

* Update setup.py
2019-07-05 20:16:57 +02:00
Jarek 332be91d00 [AIRFLOW-4876] Making tests in CoreTest rerunnable (#5508)
- all related DagRun, TaskInstance and TaskFail objects are properly removed on tear down
- replaced "models.<ModelName>" importing with "<ModelName>" direct usage
- extracted test specific DAG ids into test suit constants
- small linter improvements
2019-07-05 18:57:41 +02:00
Stefan Seelmann 2bdb053db6 [AIRFLOW-4797] Improve performance and behaviour of zombie detection (#5511)
Moved query to fetch zombies from DagFileProcessorManager to DagBag class. Changed query to only look for DAGs of the current DAG bag. The query now uses index ti_dag_state instead of ti_state. Removed no longer required zombies parameters from many function signatures.

The query is now executed on every call to DagBag.kill_zombies which is called when the DAG file is processed which frequency depends on scheduler_heartbeat_sec and processor_poll_interval (AFAIU). The query is faster than the previous one (see also stats below). It's also negligible IMHO because during DAG file processing many other queries (DAG runs and task instances are created, task instance dependencies are checked) are executed.
2019-07-04 21:49:21 +01:00
Xtreak 977af469d3 [AIRFLOW-4895] Import Iterable from collections.abc to fix DeprecationWarning in airflow.utils (#5533) 2019-07-04 20:41:32 +01:00
Alessandro Puccetti 21a7e7ec67 [AIRFLOW-XXX] Add Huq Industries to company list in readme (#5532) 2019-07-04 22:19:52 +08:00
Joshua Carp 526c65a572 [AIRFLOW-4478] Lazily instantiate default resources objects. (#5259)
Instantiating `Resources` and its child classes takes non-negligible
time when users create many operators. To save time, don't create the 
resources object until it is needed.
2019-07-04 14:55:55 +01:00
Tomek dc6909f0e2 [AIRFLOW-4891] Extend list of pylint good-names (#5524) 2019-07-04 15:12:09 +02:00
Alex 6f795ff8ae [AIRFLOW-3360] Make the DAGs search respect other querystring parameters with url-search-params-polyfill for IE support (#5503) 2019-07-04 14:05:44 +01:00
Philippe Gagnon ce6fe31f2a [AIRFLOW-4896] Make KubernetesExecutorConfig's default args immutable (#5534) 2019-07-04 14:03:12 +01:00
MisLink 42033d2fec [AIRFLOW-4494] Remove `shell=True` in DaskExecutor (#5273)
Signed-off-by: MisLink <gjq.uoiai@outlook.com>
2019-07-04 12:02:12 +01:00
Abhishek Ray 75872a2c41 [AIRFLOW-4510] Don't mutate default_args during DAG initialization (#5277)
While initializing a DAG, default_args is being mutated. If another
DAG is created in the same file with the same default_args, it gets
initialized with the incorrect Timezone information.
2019-07-04 11:29:59 +02:00
Evan Savage be6a0e76a9 [AIRFLOW-XXX] Add City of Toronto to official users list (#5526)
[ci skip]
2019-07-03 19:03:55 +01:00
Jarek 9652d30606 [AIRFLOW-XXX] Add Growbots as the user of Airflow (#5523)
[ci skip]
2019-07-03 14:46:43 +01:00
Saurabh Wahile 738e2b7d1e [AIRFLOW-XXX] Add LokSuvidha to list of companies using Airflow (#5520)
[ci skip]
2019-07-03 13:38:24 +01:00
Nicolas Crocfer d2c0f16671 [AIRFLOW-XXX] Add OVH to the list of Airflow users (#5521)
[ci skip]
2019-07-03 13:36:00 +01:00
Jarek Potiuk 7448d3c0cd
[AIRFLOW-4885] Add virtualenv dependency (#5518) 2019-07-03 05:12:52 +02:00
Xiaodong 0fe8cbe314 [AIRFLOW-4862] Fix bug for earlier change to allow using IP as hostname (#5513) 2019-07-02 12:48:17 +01:00
Asgeir Berland 722379adc7 [AIRFLOW-4564] ACI bugfixes and improvements (#5319) 2019-07-01 17:23:02 +01:00
eladkal f0460ccb31 [AIRFLOW-4406] Fix a method name typo: NullFernet.decrpyt to decrypt (#5509)
fixing typo from decrpyt to decrypt
2019-07-01 17:17:49 +01:00
Ash Berlin-Taylor 6ae5f2b69a
[AIRFLOW-4864] Remove calls to load_test_config (#5502)
We already set the environment variable in the test runner so that
airflow.configuration will do this -- we don't need to do it again
2019-07-01 16:43:03 +01:00
Ash Berlin-Taylor cbb1494397
[AIRFLOW-4871] Allow creating DagRuns via RBAC UI (#5507)
All this needed to enable the form was to add `can_add` to the
permission list

The run_id field is a required form (though the DB doesn't have it as
not nullable) - the scheduler requires it. so I have enabled the
required validation for it.

The `validators_columns` attribute on the view was ignored by FAB
because we set `add_form` and `edit_form` directly, so I have removed
the property
2019-07-01 14:35:36 +01:00
Tanuj Gupta 65eef1ca3d [AIRFLOW-4237] Including Try Number of Task in Gantt Chart (#5037) 2019-06-30 13:49:39 -07:00
César Reyes 12a2a41466
[AIRFLOW-4849] Add gcp_conn_id to cloudsqldatabehook class to use correctly CloudSqlProxyRunner class (#5478)
* add gcp_conn_id to cloudsqldatabehook

* Modified gcp sql hook test
2019-06-30 14:00:08 +02:00
Kamil Breguła d2c7617d80 [AIRFLOW-4769] Pass gcp_conn_id to BigtableHook (#5445) 2019-06-29 10:20:18 +02:00
Xiaodong 9ddde7296c
[AIRFLOW-4862] Allow directly using IP address as hostname (#5501) 2019-06-29 12:43:12 +08:00
Kamil Breguła 2758cd1fdd
[AIRFLOW-4840] Fix pylint errors regarding logging-format-interpolation (#5466) 2019-06-28 22:34:58 +02:00
Xiaodong b30f0fa9f2 [AIRFLOW-3935] answer a TODO in airflow/executors/local_executor.py (#4752)
To answer why 'raise e' was commented:
1. This try-except is inside method execute_work() & there are other operations
   after the try-except and after invoking this method.
   Raising exception here will prevent all following steps from taking place.
2. The exception itself is already marked properly by labelling state to be FAILED,
   and the exception is printed out using self.log.error().
2019-06-28 17:01:48 +01:00
Chaithra Yenikapati 750cb7a1a0 [AIRFLOW-XXX] Add Kargo to list of Airflow users (#5500) 2019-06-27 14:04:47 -07:00
Tomek 8c4633c9f4 [AIRFLOW-4859] Extend list of pylint good-names (#5496)
Nearly 10% of pylint errors are related to invalid-name of variable.
So this commit propose to add cm, db, f, dr, op to pylint good-names.
2019-06-27 21:19:57 +02:00
Kaxil Naik 577a728314 [AIRFLOW-4860] Remove Redundant Information in Example Dags (#5497) 2019-06-27 16:32:11 +01:00
Kaxil Naik 8b7f93d2a2
[AIRFLOW-4857] Add templated fields to SlackWebhookOperator (#5490) 2019-06-27 20:52:17 +05:30
Tomek f6ae172030 [AIRFLOW-4767] Fix errors in the documentation of Dataproc Operator (#5487) 2019-06-27 07:03:06 +02:00
Alejandro Rojas 6afb12f0e5 [AIRFLOW-4524] Fix incorrect field names in view for Mark Success/Failure (#5486)
Another mistake that wasn't caught from #5039 - we renamed the fields
in the template (to be unique) but didn't update the view
2019-06-26 15:01:55 +01:00
Calvin Canh Tran a65804fd06 [AIRFLOW-XXX] Add Grab to the list of Airflow users (#5485)
[ci skip]
2019-06-26 13:18:19 +01:00
marsewe 1ea8c9a50d [AIRFLOW-XXX] Add Bonial International GmbH to who's using Airflow (#5484)
[ci skip]
2019-06-26 13:08:53 +01:00