Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions celery_rpc/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def call(self, function, args=None, kwargs=None, nowait=False, timeout=None,
high_priority=high_priority, **options)
return self.send_request(signature, nowait, timeout, retries)

def get_result(self, async_result, timeout=None):
def get_result(self, async_result, timeout=None, **options):
""" Collect results from delayed result object

:param async_result: Celery AsyncResult object
Expand All @@ -289,8 +289,9 @@ def get_result(self, async_result, timeout=None):

"""
timeout = timeout or GET_RESULT_TIMEOUT

try:
return async_result.get(timeout=timeout)
return async_result.get(timeout=timeout, **options)
except TimeoutError:
raise self.TimeoutError('Timeout exceeded while waiting for results')
except RestFrameworkError:
Expand Down