Skip to content

[AIRFLOW-1024] Ignore celery executor errors (#49) - #2355

Closed
aoen wants to merge 1 commit into
apache:masterfrom
aoen:ddavydov--handle_celery_executor_errors_gracefully
Closed

aoen wants to merge 1 commit into
apache:masterfrom
aoen:ddavydov--handle_celery_executor_errors_gracefully

Conversation

@aoen

@aoen aoen commented Jun 9, 2017 •

Copy link
Copy Markdown
Contributor

Code defensively around the interactions with celery so that
we just log errors instead of crashing the scheduler.
It might makes sense to make the try catches one level higher
(to catch errors from all executors), but this needs some investigation.

@saguziel

JIRA

Description

  • Here are some details about my PR, including screenshots of any UI changes:

Tests

  • My PR adds the following unit tests OR does not need testing for this extremely good reason:
    No tests for celery at the moment. We have been running this at Airbnb in production for many months now and it has caught a lot of celery issues.

Commits

  • 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"

Code defensively around the interactions with celery so that
we just log errors instead of crashing the scheduler.
It might makes sense to make the try catches one level higher
(to catch errors from all executors), but this needs some investigation.
@saguziel

saguziel commented Jun 9, 2017

Copy link
Copy Markdown
Contributor

LGTM. the context is that we may receive bad messages from celery

@asfgit asfgit closed this in 7af20fe Jun 9, 2017
@codecov-io

codecov-io commented Jun 9, 2017 •

Copy link
Copy Markdown

Codecov Report

Merging #2355 into master will increase coverage by 0.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2355      +/-   ##
==========================================
+ Coverage   69.46%   69.47%   +0.01%     
==========================================
  Files         145      145              
  Lines       11066    11070       +4     
==========================================
+ Hits         7687     7691       +4     
  Misses       3379     3379
Impacted Files Coverage Δ
airflow/executors/celery_executor.py 0% <0%> (ø) ⬆️
airflow/jobs.py 75.15% <0%> (+0.4%) ⬆️

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 38cbf13...a1df343. Read the comment docs.

@bolkedebruin

Copy link
Copy Markdown
Contributor

Can we please have some unit tests around the celery executor?

@saguziel

Copy link
Copy Markdown
Contributor

We should have stronger tests for base_executor, and run them on all executors.

@bolkedebruin

Copy link
Copy Markdown
Contributor

I agree but not all executors are equal. We should have a stronger interface/abstract then as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants