Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/celery/celery
/ first
Method
first
t/unit/worker/test_loops.py:99–101 ·
view source on GitHub ↗
(*args, **kwargs)
Source
from the content-addressed store, hash-verified
97
def
timeout_then_error(self, mock):
98
99
def
first(*args, **kwargs):
100
mock.side_effect = socket.error()
101
raise
socket.timeout()
102
mock.side_effect = first
103
104
def
close_then_error(self, mock=None, mod=0, exc=None):
Callers
nothing calls this directly
Calls
2
close
Method · 0.95
error
Method · 0.45
Tested by
no test coverage detected