Skip to content
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

Celery RuntimeWarning E_WOULDBLOCK #2416

Open
hackdna opened this issue Dec 8, 2017 · 0 comments
Open

Celery RuntimeWarning E_WOULDBLOCK #2416

hackdna opened this issue Dec 8, 2017 · 0 comments

Comments

@hackdna
Copy link
Member

hackdna commented Dec 8, 2017

  • Specific code commit: e2bb3a6
  • Version of the web browser and OS: N/A
  • Environment where the error occurred: Vagrant and AWS

Steps to reproduce

Run an analysis

Observed behavior

Celery worker1 log:

2019-04-11 12:20:28,898 DEBUG    analysis_manager.tasks:368 _run_galaxy_workflow[88ef5845-5d71-49cb-8816-551245466b68] - Starting workflow execution in Galaxy
/home/vagrant/.virtualenvs/refinery-platform/local/lib/python2.7/site-packages/celery/result.py:45: RuntimeWarning: Never call result.get() within a task!
See http://docs.celeryq.org/en/latest/userguide/tasks.html#task-synchronous-subtasks

In Celery 3.2 this will result in an exception being
raised instead of just being a warning.

  warnings.warn(RuntimeWarning(E_WOULDBLOCK))

2019-04-11 12:20:28,901 WARNING  py.warnings:45 assert_will_not_block() - /home/vagrant/.virtualenvs/refinery-platform/local/lib/python2.7/site-packages/celery/result.py:45: RuntimeWarning: Never call result.get() within a task!
See http://docs.celeryq.org/en/latest/userguide/tasks.html#task-synchronous-subtasks

In Celery 3.2 this will result in an exception being
raised instead of just being a warning.

  warnings.warn(RuntimeWarning(E_WOULDBLOCK))

2019-04-11 12:20:34,864 INFO     analysis_manager.tasks:289 run_analysis[88ef5845-5d71-49cb-8816-551245466b68] - Executing Analysis with UUID: baf1ef2b-02aa-4200-8871-e4d7f25c76ea

This will prevent Celery upgrade to versions higher than 3.1.x and can lead to very hard to diagnose task execution failures.

Expected behavior

No warning or error.

@hackdna hackdna added this to the Next milestone Dec 8, 2017
@hackdna hackdna added this to Backlog in Technical Debt via automation Jan 22, 2018
@jkmarx jkmarx removed this from the Next milestone Apr 9, 2018
@hackdna hackdna moved this from Backlog to Dependencies in Technical Debt Mar 22, 2019
@hackdna hackdna added this to the Release 1.6.9 milestone Apr 2, 2019
@hackdna hackdna self-assigned this Apr 2, 2019
@hackdna hackdna modified the milestones: Release 1.6.9, Next Apr 11, 2019
@ilan-gold ilan-gold assigned ilan-gold and unassigned hackdna Nov 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Technical Debt
  
Dependencies
Development

No branches or pull requests

3 participants