-
Notifications
You must be signed in to change notification settings - Fork 14.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AIRFLOW-5088][AIP-24][BackPort] Persisting serialized DAG in DB for webserver scalability #5992
Conversation
3121add
to
0b9ce05
Compare
f4beb40
to
b683e23
Compare
0bbdc7a
to
f998167
Compare
fc842b1
to
f32c1b4
Compare
Codecov Report
@@ Coverage Diff @@
## v1-10-test #5992 +/- ##
==============================================
+ Coverage 76.79% 79.36% +2.57%
==============================================
Files 511 518 +7
Lines 34734 35238 +504
==============================================
+ Hits 26673 27966 +1293
+ Misses 8061 7272 -789
Continue to review full report at Codecov.
|
ToDo:
|
f32c1b4
to
bcbd0f1
Compare
b9cd236
to
bf7ac1a
Compare
95887c5
to
1624c90
Compare
This was a valid type for schedule_interval already, so we should continue supporting it (cherry picked from commit ec9d705f1a90790bdcb099196269c77d3cc3d53c) (cherry picked from commit 9805b4a183b87976dc33ae80c7e6a209849ba5d7)
(cherry picked from commit 92d442d33dd8c81ea73026405d3978d133140807)
(cherry picked from commit d0ce27e3f3b6046016800855ad2e57fa67d8b57f)
To save start-up time (and memory) this changes the DabBag to not be populated by the webserver on start up - and when a specific dag is asked for it will be loaded on-demand from the SerializedDAG table. Co-Authored-By: Ash Berlin-Taylor <[email protected]>
ExtraOperatorLinks are supported if Plugins are registered for them (cherry picked from commit 9cb6e28)
afa60a5
to
1672dd3
Compare
…scalability (#5992) Co-authored-by: Ash Berlin-Taylor <[email protected]> Co-Authored-By: Zhou Fang <[email protected]>
🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉 🎉 |
…scalability (apache#5992) Co-authored-by: Ash Berlin-Taylor <[email protected]>
…scalability (#5992) Co-authored-by: Ash Berlin-Taylor <[email protected]> Co-Authored-By: Zhou Fang <[email protected]>
…scalability (apache#5992) Co-authored-by: Ash Berlin-Taylor <[email protected]> Co-Authored-By: Zhou Fang <[email protected]>
…scalability (#5992) Co-authored-by: Ash Berlin-Taylor <[email protected]> Co-Authored-By: Zhou Fang <[email protected]>
cfg points to broken link https://airflow.apache.org/howto/enable-dag-serialization.html |
Thanks, will update it.
…On Tue, Dec 24, 2019, 16:09 tooptoop4 ***@***.***> wrote:
cfg points to broken link
https://airflow.apache.org/howto/enable-dag-serialization.html
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#5992?email_source=notifications&email_token=ACDHIJVO3KTRORZ5F2W7I2LQ2IX2LA5CNFSM4ITE67U2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHTMPEY#issuecomment-568772499>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACDHIJRIBSDQATOXBM3CJ3LQ2IX2LANCNFSM4ITE67UQ>
.
|
Correct Link in case you are looking for it is:
https://airflow.apache.org/docs/1.10.7/dag-serialization.html
…On Tue, Dec 24, 2019 at 4:10 PM Kaxil Naik ***@***.***> wrote:
Thanks, will update it.
On Tue, Dec 24, 2019, 16:09 tooptoop4 ***@***.***> wrote:
> cfg points to broken link
> https://airflow.apache.org/howto/enable-dag-serialization.html
>
> —
> You are receiving this because you modified the open/close state.
> Reply to this email directly, view it on GitHub
> <#5992?email_source=notifications&email_token=ACDHIJVO3KTRORZ5F2W7I2LQ2IX2LA5CNFSM4ITE67U2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEHTMPEY#issuecomment-568772499>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACDHIJRIBSDQATOXBM3CJ3LQ2IX2LANCNFSM4ITE67UQ>
> .
>
|
for a .py that generates multi dynamic dags how can parsing the dag be avoided? @kaxil |
Make sure you have checked all steps below.
Jira
Description
*Backport of [AIRFLOW-5088][AIP-24] Persisting serialized DAG in DB for webserver scalability #5743 for v1-10- branches **
Based on [AIRFLOW-5088][AIP-24] Add DAG serialization using JSON #5701, this PR implements functionalities including writing serialized DAGs to DB in scheduler, reading DAGs from DB in webserver, controlled by [core] dagcached
The goal is to decouple webserver from the DAG folder, instead it reads everything from database.
Rendering template by functions is an exception, in that case it needs to re-import DAG, because functions are stringified in serialized DAG.
Tests
Commits
Documentation
Code Quality
flake8
cc @coufon