Skip to content

Conversation

@mik-laj
Copy link
Member

@mik-laj mik-laj commented Feb 21, 2020

DagBag should be responsible for loading DAGs. The Scheduler should be responsible for managing task instance.


Issue link: AIRFLOW-6867

Make sure to mark the boxes below before creating PR: [x]

  • Description above provides context of the change
  • Commit message/PR title starts with [AIRFLOW-NNNN]. AIRFLOW-NNNN = JIRA ID*
  • Unit tests coverage for changes (not needed for documentation changes)
  • Commits follow "How to write a good git commit message"
  • Relevant documentation is updated including usage instructions.
  • I will engage committers as explained in Contribution Workflow Example.

* For document-only changes commit message can start with [AIRFLOW-XXXX].


In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.
Read the Pull Request Guidelines for more information.

@boring-cyborg boring-cyborg bot added the area:Scheduler including HA (high availability) scheduler label Feb 21, 2020
CYCLE_DONE = 2
DAGBAG_IMPORT_TIMEOUT = conf.getint('core', 'DAGBAG_IMPORT_TIMEOUT')
UNIT_TEST_MODE = conf.getboolean('core', 'UNIT_TEST_MODE')
SCHEDULER_ZOMBIE_TASK_THRESHOLD = conf.getint('scheduler', 'scheduler_zombie_task_threshold')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this still needed in here? Feels like it shouldn't be

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know. I just do simple refactoring. I don't know the history of this option.

@mik-laj mik-laj merged commit 4e0e2f0 into apache:master Feb 21, 2020
@codecov-io
Copy link

Codecov Report

Merging #7488 into master will decrease coverage by 0.22%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #7488      +/-   ##
==========================================
- Coverage   86.68%   86.46%   -0.23%     
==========================================
  Files         882      883       +1     
  Lines       41526    41634     +108     
==========================================
+ Hits        35997    35998       +1     
- Misses       5529     5636     +107
Impacted Files Coverage Δ
airflow/models/dagbag.py 89.74% <ø> (-0.81%) ⬇️
airflow/jobs/scheduler_job.py 90.22% <100%> (+0.56%) ⬆️
airflow/kubernetes/volume_mount.py 44.44% <0%> (-55.56%) ⬇️
airflow/kubernetes/volume.py 52.94% <0%> (-47.06%) ⬇️
airflow/kubernetes/pod_launcher.py 47.18% <0%> (-45.08%) ⬇️
...viders/cncf/kubernetes/operators/kubernetes_pod.py 69.38% <0%> (-25.52%) ⬇️
airflow/kubernetes/refresh_config.py 50.98% <0%> (-23.53%) ⬇️
...oogle/marketing_platform/hooks/campaign_manager.py 89.23% <0%> (-10.77%) ⬇️
..._platform/example_dags/example_campaign_manager.py 93.93% <0%> (-6.07%) ⬇️
airflow/providers/google/cloud/hooks/base.py 95.9% <0%> (-0.55%) ⬇️
... and 15 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1a9a9f7...27e572b. Read the comment docs.

@tooptoop4
Copy link
Contributor

@mik-laj there is typo Simpley

@mik-laj
Copy link
Member Author

mik-laj commented Feb 21, 2020

@tooptoop4 Thanks. I will try to correct all types in the schedule when I finish optimizing the scheduler.

ashb added a commit to ashb/airflow that referenced this pull request Feb 25, 2020
The refactor in apache#7488 introduced a scheduler-breaking bug.
galuszkak pushed a commit to FlyrInc/apache-airflow that referenced this pull request Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:Scheduler including HA (high availability) scheduler

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants