Page MenuHomePhabricator

Quiet result.get Warning in tasks
Closed, ResolvedPublicPRODUCTION ERROR

Description

Sep 25 16:34:18 scb1001 celery[30747]: [2016-09-25 16:34:18,198: WARNING/Worker-14] /srv/deployment/ores/venv/lib/python3.4/site-packages/celery/result.py:45: 
RuntimeWarning: Never call result.get() within a task!

Event Timeline

Halfak renamed this task from Quiet re. result.get in tasks to Quiet result.get Warning in tasks.Sep 26 2016, 5:45 PM
Halfak triaged this task as Medium priority.
Halfak moved this task from Unsorted to Maintenance/cleanup on the Machine-Learning-Team board.

Change 314843 had a related patch set uploaded (by Ladsgroup):
Log only errors

https://gerrit.wikimedia.org/r/314843

Here's an example of the full warning

[2016-10-10 11:43:07,262: WARNING/Worker-8] /home/halfak/venv/3.5/lib/python3.5/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))

Mentioned in SAL (#wikimedia-operations) [2016-10-10T20:09:44Z] <Amir1> deploying 8bbd3ab to ores canary nodes (T146680)

mmodell changed the subtype of this task from "Task" to "Production Error".Aug 28 2019, 11:11 PM