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

129 Коммитов

Автор SHA1 Сообщение Дата
Kamil Breguła 55ab5db82c [AIRFLOW-XXX] Split connection guide to multiple files (#4824) 2019-03-04 14:51:38 +01:00
Chen Tong 45d24e79ea [AIRFLOW-3977] Add examples of trigger rules in doc (#4805)
The current LatestOnlyOperator will skip all downstream tasks blindly.
The doc shows a wrong behavior. It also shows an incorrect example about
the interaction between skipped tasks and trigger rules. I replace it with
another example using BranchingOperator in schedule level.

This fix can resolve this ticket:
https://issues.apache.org/jira/browse/AIRFLOW-3977
Also,
https://issues.apache.org/jira/browse/AIRFLOW-1784
2019-03-01 23:13:57 -08:00
Kamil Breguła 0982715a61 [AIRFLOW-XXX] Fix syntax docs errors (#4789)
Co-authored-by: Jarek Potiuk <jarek.potiuk@polidea.com>
2019-02-27 14:55:27 +01:00
Dima Kamalov b0c4d37fb5 [AIRFLOW-XXX] Correct BranchPythonOperator docs (#4745) 2019-02-26 21:36:24 -08:00
Joshua Carp c50a851463 [AIRFLOW-3932] Update unit tests and documentation for safe mode flag. (#4760) 2019-02-24 21:35:14 -08:00
Kamil Breguła d80e945f40 [AIRFLOW-3616][AIRFLOW-1215] Add aliases for schema with underscore (#4523) 2019-02-19 16:25:38 +01:00
OmerJog 23a7761106 [AIRFLOW-XXX] Docs: Add note - airflow pool is not honored by SubDagOperator (#4634) 2019-02-12 23:28:01 +00:00
BasPH e442d055e8 [AIRFLOW-XXX] Update docs with new BranchPythonOperator behaviour (#4682) 2019-02-12 16:01:01 +01:00
BasPH f4374eda3e [AIRFLOW-XXX] Add section on task lifecycle & correct casing in docs (#4681) 2019-02-11 11:28:26 +00:00
Kamil Breguła 6b38649fa6 [AIRFLOW-XXX] Improve linking to classes (#4655) 2019-02-07 11:57:32 +00:00
Felix 0d7ece3da6 [AIRFLOW-1262] Adds missing docs for email configuration (#4557) 2019-01-21 19:47:47 +00:00
eladkal 69c75b117c [AIRFLOW-1684] - Branching based on XCom variable (Docs) (#4365)
Elaborate how to use branching with xcoms
2018-12-26 20:56:53 +01:00
BasPH c9a82d48a3 [AIRFLOW-3458] Move models.Connection into separate file (#4335) 2018-12-20 13:15:37 +01:00
rmn36 5955db1c76 [AIRFLOW-3336] Add new TriggerRule for 0 upstream failures (#4182)
Add new TriggerRule that triggers only if all upstream do not fail (success or skipped tasks are allowed)
2018-11-23 18:41:04 +00:00
BasPH ad2c968fc8 [AIRFLOW-3375] Support returning multiple tasks with BranchPythonOperator (#4215) 2018-11-21 15:59:19 +01:00
ron819 8668ef869d [AIRFLOW-3350] Explain how to use Bitshift Composition with lists (#4191) 2018-11-15 20:33:47 +00:00
Ash Berlin-Taylor b9fc03ea1a [AIRFLOW-2779] Add license headers to doc files (#4178)
This adds ASF license headers to all the .rst and .md files with the
exception of the Pull Request template (as that is included verbatim
when opening a Pull Request on Github which would be messy)
2018-11-13 15:01:44 +01:00
Xiaodong 4968a52116 [AIRFLOW-3104] Add .airflowignore info into doc (#3939)
.airflowignore is a nice feature, but it was not mentioned at all in the documentation.
2018-09-28 13:43:55 +01:00
Xiaodong 4c1282c43b [AIRFLOW-XXX] Fix a wrong sample bash command, a display issue & a few typos (#3924) 2018-09-21 11:24:13 +01:00
Taylor D. Edmiston b7f63c59d7 [AIRFLOW-XXX] Fix some operator names in the docs (#3778) 2018-08-21 23:01:25 +01:00
Xiaodong c0c63ae2a4 [AIRFLOW-2839] Refine Doc Concepts->Connections (#3678) 2018-08-05 19:08:15 +01:00
Tim Swast 89c1f530da [AIRFLOW-2682] Add how-to guides for bash and python operators
Closes #3552 from tswast/airflow-2682-bash-python-
how-to
2018-06-29 14:15:16 +02:00
Cameron Moberg dc38b2f46d [AIRFLOW-2613] Fix Airflow searching .zip bug
When Airflow was populating a DagBag from a .zip
file, if a single
file in the root directory did not contain the
strings 'airflow' and
'DAG' it would ignore the entire .zip file.

Also added a small amount of logging to not
bombard user with info
about skipping their .py files.

Closes #3505 from Noremac201/dag_name
2018-06-17 19:16:12 +01:00
Tim Swast 4c0d67f0d0 [AIRFLOW-2523] Add how-to for managing GCP connections
I'd like to have how-to guides for all connection
types, or at least the
different categories of connection types. I found
it difficult to figure
out how to manage a GCP connection, this commit
add a how-to guide for
this.

Also, since creating and editing connections
really aren't all that
different, the PR renames the "creating
connections" how-to to "managing
connections".

Closes #3419 from tswast/howto
2018-05-25 09:37:29 +01:00
Moe Nadal a67c13e44c [AIRFLOW-2401] Document the use of variables in Jinja template
Closes #2847 from moe-nadal-ck/patch-1
2018-04-30 15:06:10 -07:00
Bovard Doerschuk-Tiberi 2a8bb0e1b7 [AIRFLOW-1835] Update docs: Variable file is json
Searching through all the documentation I couldn't
find anywhere
that explained what file format it expected for
uploading settings.

Closes #2802 from bovard/variable_files_are_json
2018-04-25 14:21:35 -07:00
Tristram Oaten fd6f1d1a07 [AIRFLOW-2041] Correct Syntax in python examples
I parsed it with the ol' eyeball compiler. Someone
could flake8 it better, perhaps.
Changes:

 - correct `def` syntax on line 50
 - use literal dict on line 67

Closes #2479 from 0atman/patch-1
2018-04-24 23:04:38 -07:00
Tamu 69ccf84321 [AIRFLOW-2312] Docs Typo Correction: Corresponding
# JIRA
[x] My PR addresses the following Airflow JIRA
issues and references them in the PR title.
*
https://issues.apache.org/jira/browse/AIRFLOW-2312

# Description

[x] Here are some details about my PR

Minor typo fix in the docs. `correpsonding` to
`corresponding`

# Tests
[x] My PR adds the following unit tests OR does
not need testing for this extremely good reason:

I assume I don't need testing for docs

# Commits

[x] My commits all reference JIRA issues in their
subject lines, and I have squashed multiple
commits if they address the same issue. In
addition, my commits follow the guidelines from
"How to write a good git commit message":

1. Subject is separated from body by a blank line
2. Subject is limited to 50 characters
3. Subject does not end with a period
4. Subject uses the imperative mood ("add", not
"adding")
5. Body wraps at 72 characters
6. Body explains "what" and "why", not "how"

Closes #3211 from tamsanh/patch-1
2018-04-11 11:42:46 +02:00
Edan Schwartz 1675ba933a [AIRFLOW-XXX] Fix typo in concepts doc (dag_md)
Closes #2994 from eschwartz/patch-1
2018-02-07 11:42:54 +01:00
Trevor Edwards 984a87c0cb [AIRFLOW-1505] Document when Jinja substitution occurs
Closes #2523 from TrevorEdwards/airflow-1505
2017-08-15 10:35:46 -07:00
Andrew Chen e6d3160a06 [AIRFLOW-1140] DatabricksSubmitRunOperator should template the "json" field.
Add "json" in the templated_fields list for the
DatabricksSubmitRunOperator.

Closes #2255 from andrewmchen/DatabricksOperator-
templated
2017-05-01 23:24:24 +02:00
Ruslan Dautkhanov 7d11444a53 [AIRFLOW-1009] Remove SQLOperator from Concepts page
Remove SQLOperator from Concepts page. Update with
a sample list of database backend-specific
operators, lile, MySqlOperator, SqliteOperator,
PostgresOperator, MsSqlOperator, OracleOperator,
JdbcOperator

Closes #2168 from Tagar/AIRFLOW-1009
2017-03-19 10:08:37 -04:00
Daniel Huang baa4cd6806 [AIRFLOW-882] Remove unnecessary dag>>op assignment in docs
Closes #2088 from dhuang/AIRFLOW-882
2017-02-18 11:11:09 -05:00
Duy-Minh TRAN f3af6f44eb [AIRFLOW-96] s3_conn_id using environment variable
Dear Airflow Maintainers,

Please accept this PR that addresses the following
issues:
- [AIRFLOW-96](https://issues.apache.org/jira/brow
se/AIRFLOW-96) : allow parameter "s3_conn_id" of
S3KeySensor and S3PrefixSensor to be defined using
an environment variable.

Actually, S3KeySensor and S3PrefixSensor use the
S3hook, which extends BaseHook. BaseHook has
get_connection, which looks a connection up :
- in environment variables first
- and then in the database

Closes #1517 from dm-tran/fix-jira-airflow-96
2016-10-20 21:30:34 +05:30
Daniel Zohar c02425d483 [AIRFLOW-530] Update docs to reflect connection environment var has to be in uppercase
Dear Airflow Maintainers,

Please accept this PR that addresses the following
issues:
https://issues.apache.org/jira/browse/AIRFLOW-530

Right now, the documentation does not clearly
state that connection names are converted to
uppercase form when searched in the environment
(https://github.com/apache/incubator-airflow/blob/
master/airflow/hooks/base_hook.py#L60-L60).
This is confusing as the best practice in Airflow
seems to be to define connections in lower case
form.

Closes #1811 from danielzohar/connection_env_var
2016-10-01 00:33:50 -07:00
George Leslie-Waksman edf033be65 [AIRFLOW-198] Implement latest_only_operator
Dear Airflow Maintainers,

Please accept this PR that addresses the following
issues:
-
https://issues.apache.org/jira/browse/AIRFLOW-198

Testing Done:
- Local testing of dag operation with
LatestOnlyOperator
- Unit test added

Closes #1752 from gwax/latest_only
2016-09-27 17:07:14 -07:00
Maxime Beauchemin 4a84a578a5 Add an Apache Incubator Disclaimer and mocking modules
Closes #1634 from mistercrunch/mock_docs

Adding an Apache Incubator Disclaimer and mocking modules
2016-06-29 13:39:15 -07:00
Chris Riccomini dc84fdecdf [AIRFLOW-285] Use Airflow 2.0 style imports for all remaining hooks/operators 2016-06-28 13:34:47 -07:00
Mark Reid 8d72975734 docfix: Fix a couple of minor typos. 2016-05-23 09:16:38 -03:00
Chris Riccomini abc43c1445 Merge branch '1493' 2016-05-17 08:14:30 -07:00
Hervé Werner 150568228b [AIRFLOW-121] Documenting dag doc_md feature 2016-05-17 09:57:23 +02:00
Maxime Beauchemin aeb5a07ff9 Docs tweaks while generating the docs 2016-05-03 22:13:35 -07:00
Joy Gao a5ad871a36 Support list/get/set variables in the CLI 2016-04-16 00:11:46 -07:00
bolkedebruin 975b90ec3c Add support for zipped dags
Currently dags are being read directly from the filesystem. Any
hierarchy (python namespaces, modules) need to be reflected on
the filesystem. This makes it hard to manage dags and their
depedencies.

This patch adds support for dags in zip files. It will add
the zip to sys.path and then it will read the zip file and
try to import any files as modules that are in the root of
the zip.

Please note that any module contained within the zip will
overwrite existing modules in the same namespace.
2016-04-14 09:03:42 +02:00
jlowin fb0c5775cd Add DAG inference, deferral, and context manager
- Operators can be created without DAGs, but the DAG can be added at
any time thereafter (by assigning to the ‘dag’ attribute). Once a DAG
is assigned, it can not be removed or reassigned.

- Operators can infer DAGs from other operators. Setting a relationship
will also set the DAG, if possible. Operators from different DAGs and
operators with no DAGs can not be chained.

- DAGs can be used as context managers. When “inside” a DAG context
manager, the default DAG for all new Operators is that DAG (unless they
specify a different one)

- Unit tests

- Add default owner for Operators

- Support composing operators with >> and <<

Three special cases:
  op1 >> op2 is equivalent to op.set_downstream(op2)
  op1 << op2 is equivalent to op1.set_upstream(op2)
  dag >> op1 (in any order or direction) means op1.dag = dag

These can be chained:
  dag >> op1 >> op2 << op3

- Update concepts documentation
2016-04-12 14:27:53 -04:00
Antoine Augusti c41a0da064 Doc: explain the usage of Jinja templating for templated params 2016-04-06 09:59:32 +02:00
lusop 2f48a53eb6 Add an example on pool usage in the documentation 2016-03-25 17:04:14 -07:00
Nicholas Travers 22ca9c295e Add SubDAG concept documentation 2016-03-01 15:22:47 -08:00
Maxime Beauchemin 2aa42938ff Documenting task details doc_ feature 2016-02-23 09:40:30 -08:00
Maxime Beauchemin cd0ebdbe5b Documenting the cluster policy feature 2016-02-21 07:01:37 -08:00
Maxime Beauchemin 58799ae6dc Poison pill for undeads 2016-01-19 09:12:39 -08:00
thibault ketterer 3851ee9548 doc: note on skipping a branch 2015-12-18 14:58:56 +01:00
Maxime Beauchemin f919728cdc SLA = Service Level Agreements 2015-12-12 09:00:44 -08:00
Maxime Beauchemin 4497b5370c Branching related additions to docs 2015-11-23 15:42:34 -08:00
Maxime f059bf9d6d Doc improvments 2015-09-16 23:20:16 +00:00
Maxime 1a2e83009a Clarifying docs entry for trigger_rule 2015-09-03 23:52:35 -07:00
Maxime 125a23dc4b Doc entry 2015-09-03 23:52:23 -07:00
Rimas Silkaitis f83d543ee2 added some documentation 2015-08-31 14:54:41 -07:00
Maxime Beauchemin c5ce6a340f Revert "Making the dependency engine more flexible" 2015-08-25 00:29:18 -07:00
Maxime Beauchemin 5332ebfcd6 Merge pull request #261 from airbnb/dep_rule
Making the dependency engine more flexible
2015-08-24 23:29:38 -07:00
Jeremiah Lowin 6a1264b57e Small chance to concepts docs
`airflow.connection.Connection` should be `airflow.models.Connection`
2015-08-22 20:56:41 -04:00
Maxime da606caaed Clarifying docs entry for trigger_rule 2015-08-21 16:53:45 +00:00
Maxime 0919ed0812 Doc entry 2015-08-21 15:51:53 +00:00
Jeremiah Lowin 0235a9bfc2 update default key for xcom_pull, and docs/example 2015-08-20 13:31:02 -04:00
Jeremiah Lowin 3bd84ccda5 example and docs 2015-08-17 22:50:56 -04:00
Jeremiah Lowin f3bd902206 add missing colon 2015-08-14 16:59:27 -04:00
Jeremiah Lowin 516f49e8b0 documentation 2015-08-14 16:52:12 -04:00
Jeremiah Lowin b56f3f0527 Fix argument in Variable.get()
The correct argument is `deserialize_json` not `deser_json`. See #220
2015-08-06 13:02:41 -04:00
Maxime Beauchemin 60f35c3aec SLA can be set at task level, email notifications get sent 2015-07-02 05:09:21 +00:00
Maxime db9526fff4 Adding documentation entry for BranchPythonOperator 2015-06-30 17:30:45 +00:00
Marty Woodlee 219803924a Various documentation spelling and grammar edits 2015-06-28 17:57:13 -05:00
Maxime Beauchemin 22ac771af1 A simple plugin system for Airflow 2015-06-17 00:00:54 +00:00
Maxime Beauchemin 6765012c55 Adding an entry for Variables in the docs 2015-06-16 09:50:20 -07:00
e3 2574507de2 Random spelling updates. 2015-06-05 19:41:36 +02:00
Maxime Beauchemin 9a791999b8 Added an entry for Queues in the docs 2015-06-04 18:01:51 -07:00
Maxime Beauchemin 3b75027df1 Adding a doc entry for Connections 2015-06-02 20:57:41 -04:00
Maxime Beauchemin a6ed0fa017 Adding pools entry to docs 2015-06-02 19:08:02 -04:00
Maxime b0e3602423 Added an entry for the Scheduler in the docs 2015-05-20 20:04:14 +00:00
Maxime Beauchemin ecfcb9832e Fixed up the Tutorial section in the docs 2015-02-02 11:12:04 -08:00