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

34 Коммитов

Автор SHA1 Сообщение Дата
Daniel Imberman b9a87a07e3 [AIRFLOW-1314] Rebasing against master 2018-04-22 10:23:06 +02:00
Grant Nicholas c0920efc01 [AIRFLOW-1314] Add executor_config and tests
* Added in executor_config to the task_instance table and the base_operator table

* Fix test; bump up number of examples

* Fix up comments from PR

* Exclude the kubernetes example dag from a test

* Fix dict -> KubernetesExecutorConfig

* fixed up executor_config comment and type hint
2018-04-22 10:23:06 +02:00
dimberman 5821320880 [AIRFLOW=1314] Basic Kubernetes Mode 2018-04-22 10:17:39 +02:00
Carl Johan Gustavsson 32c5f445e4 [AIRFLOW-610] Respect _cmd option in config before defaults
The command versions of config parameters were
overriden by the
default config. E.g sql_alchemy_conn got the
default value even
when sql_alchemy_conn_cmd was specified.

Closes #3029 from cjgu/airflow-610
2018-04-16 10:12:08 +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 eb2f589099 [AIRFLOW-1604] Rename logger to log
In all the popular languages the variable name log
is the de facto
standard for the logging. Rename LoggingMixin.py
to logging_mixin.py
to comply with the Python standard.

When using the .logger a deprecation warning will
be emitted.

Closes #2604 from Fokko/AIRFLOW-1604-logger-to-log
2017-09-19 10:17:14 +02:00
Fokko Driesprong a7a518902d [AIRFLOW-1582] Improve logging within Airflow
Clean the way of logging within Airflow. Remove
the old logging.py and
move to the airflow.utils.log.* interface. Remove
setting the logging
outside of the settings/configuration code. Move
away from the string
format to logging_function(msg, *args).

Closes #2592 from Fokko/AIRFLOW-1582-Improve-
logging-structure
2017-09-13 09:36:58 +02:00
Stijn Verhaegen 08a784ede6 [AIRFLOW-860][AIRFLOW-935] Fix plugin executor import cycle and executor selection
When a plugin is made with a custom Operator and
executor, an import cycle occurs when the executor
is chosen in airflow.cfg because the
executors/__init__.py starts loading plugins too
early.
changed DEFAULT_EXECUTOR use to a function call
which returns the default executor. This lazy
approach fixes the import cycle.

revision eb5982d (included in 1.8) breaks plugin
executors altogether. It makes a new module for
every plugin, so import statements need to be
adapted, but the executor selection is left
unchanged, so it ends up assigning the plugin
module as an executor.
fixed executor selection to work with the new
plugin modules system introduced in 1.8. in
Airflow.cfg a executor can now be specified as
{plugin_name}.{executor_name}

Fixes:
 -
https://issues.apache.org/jira/browse/AIRFLOW-860
 -
https://issues.apache.org/jira/browse/AIRFLOW-935

Closes #2120 from stverhae/master
2017-05-13 12:56:16 +02:00
Jeremiah Lowin 6e22102782 [AIRFLOW-862] Add DaskExecutor
Adds a DaskExecutor for running Airflow tasks
in Dask clusters.

Closes #2067 from jlowin/dask-executor
2017-02-12 16:06:31 -05:00
George Leslie-Waksman eb5982d4aa [AIRFLOW-333][AIRFLOW-258] Fix non-module plugin components
* Distinguish between module and non-module plugin
components
* Fix handling of non-module plugin components

  * admin views, flask blueprints, and menu links
need to not be
    wrapped in modules

* Fix improper use of zope.deprecation.deprecated

  * zope.deprecation.deprecated does NOT support
classes as
    first parameter
  * deprecating classes must be handled by calling
the deprecate
    function on the class name

* Added tests for plugin loading
* Updated plugin documentation to match test
plugin
* Updated executors to always load plugins
* More logging

Closes #1738 from gwax/plugin_module_fixes
2016-10-01 23:43:20 -07:00
Ajay Yadav 3ffa656d97 [AIRFLOW-248] Add Apache license header to all files
- Added Apache license header for files with extension (.service, .in, .mako, .properties, .ini, .sh, .ldif, .coveragerc, .cfg, .yml, .conf, .sql, .css, .js, .html, .xml.
- Added/Replaced shebang on all .sh files with portable version - #!/usr/bin/env bash.
- Skipped third party css and js files. Skipped all minified js files as well.

Closes #1598 from ajayyadava/248
2016-06-21 08:15:42 -07:00
Arthur Wiedmer 773f52feb9 Refactoring utils into smaller submodules
utils.py had become a little too complex. Other projects like
Django or IPython have a more structured and, I would argue,
clearer way to organize utils. I try to reproduce this here.

Ideally we want a utils folder with submodules that are grouped
thematically. I rebased off of master and fixed references across
the repository. I also introduced a PendingDeprecationWarning for
calling apply_defaults from `airflow.utils` directly and redirect
people to the right place. I also moved exceptions to a top level
file.
2016-03-28 13:24:13 -07:00
Maxime Beauchemin 9832bccd82 Improvments to documentation 2015-11-30 08:25:55 -08:00
Bolke de Bruin 5881436bea Remove hack by only importing when configured 2015-11-20 19:59:06 +01:00
Bolke de Bruin 98aaeb7624 use from airflow import configuration everywhere 2015-11-06 23:05:26 +01:00
Jochem Oosterveen ffae536da9 like MesosExecutor, import CeleryExecutor only when it's available 2015-10-21 11:59:41 +02:00
Maxime aa055ccf83 Fixing import failure when mesos lib is missing 2015-09-18 06:16:55 +00:00
kmalik 5516f884b7 Add MesosExecutor for airflow 2015-09-17 14:47:58 +05:30
Ilya Kalinin f63ad66398 pluggable executor needs to be instantiated 2015-08-28 14:02:22 -07:00
Maxime Beauchemin 84dcc17cf2 Take 2 on more explicit plugins 2015-06-18 20:57:13 -07:00
Maxime Beauchemin 22ac771af1 A simple plugin system for Airflow 2015-06-17 00:00:54 +00:00
Maxime 7091b3d539 Defining AirflowException in place of generic ones 2015-06-14 15:53:07 +00:00
Maxime f991783b11 Changing configuration scheme 2015-01-16 14:31:54 -08:00
Maxime 7e3049874e Improvments to command line tools: test, list_dags, list_tasks 2015-01-08 21:50:11 +00:00
Maxime 34bb46fef0 A few adjustments on CeleryExecutor 2014-12-30 18:07:01 +00:00
Maxime bf39f12587 Simplifying CeleryExecutor 2014-12-29 22:59:19 +00:00
Maxime Beauchemin e23f9eea65 Adding email functionality 2014-12-12 08:06:39 +00:00
Maxime Beauchemin d6a7789cbb Various improvments/fixes 2014-11-29 17:58:02 +00:00
Maxime Beauchemin b4111cc40c Making the sqlachemy db connection a config param 2014-11-17 21:01:36 +00:00
Krishna Puttaswamy 8db0197d7d breaking up base_executor into multiple files 2014-10-25 21:54:31 -07:00
Krishna Puttaswamy 67020e534e first version of the celery executor 2014-10-25 21:54:31 -07:00
LDAP/maxime_beauchemin ca31b8a7df Adding HiveOperator 2014-10-17 06:22:32 +00:00
Maxime Beauchemin a264ddcf2e Changing DEFAULT_EXECUTOR to be an instance instead of a reference to the class 2014-10-14 22:36:01 -07:00
Maxime Beauchemin 88c99624f3 Renaming project from Flux to Airflow 2014-10-14 18:28:29 -07:00