Code smell fixes for BackfillJob#12005
Conversation
airflow/jobs/backfill_job.py
Outdated
There was a problem hiding this comment.
Clarification for the 2nd part: because we have this line, actually whatever we pass to task is ignored
|
The PR needs to run all tests because it modifies core of Airflow! Please rebase it to latest master or ask committer to re-run it! |
Thanks @ashb . May you please advise any specific thing I should address for this step? It can also help me understand how I can review/process other contributors' PRs later. Cheers! |
See #12006 |
- merge IFs when we can; - One of the IF condition check should reuse STATES_COUNT_AS_RUNNING which has been already defined; - Remove unused parameter for intermediate function _per_task_process()
2cb1b2f to
b37eb8d
Compare
|
Yeah! @XD-DENG -> it worked :) after rebase you run the full matrix now. I'd love to explain it in a clearer way, but It's not easy :). Happy if you could all help in describing it (and maybe make the comments) a little more obvious what to do! |
Thanks @potiuk . Yes I'm also making use of this PR to explore how the new PR test/review process works. Earlier I tried another option ("re-run workflow" as committer), but seems not working correctly. I expect some minor adjustments would be needed to the process, will share with you once I find any. |
Yep. I am on a lookout for any adjustments and fixes needed :). Happy to get feedback. |
- merge IFs when we can; - One of the IF condition check should reuse STATES_COUNT_AS_RUNNING which has been already defined; - Remove unused parameter for intermediate function _per_task_process()
Three change items in two parts:
Part 1
STATES_COUNT_AS_RUNNINGwhich has been already defined;Part 2
_per_task_process()^ Add meaningful description above
Read the Pull Request Guidelines for more information.
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.