MCPcopy
hub / github.com/celery/celery / remove

Method remove

celery/result.py:585–596  ·  view source on GitHub ↗

Remove result from the set; it must be a member. Raises: KeyError: if the result isn't a member.

(self, result)

Source from the content-addressed store, hash-verified

583 self.on_ready()
584
585 def remove(self, result):
586 """Remove result from the set; it must be a member.
587
588 Raises:
589 KeyError: if the result isn't a member.
590 """
591 if isinstance(result, str):
592 result = self.app.AsyncResult(result)
593 try:
594 self.results.remove(result)
595 except ValueError:
596 raise KeyError(result)
597
598 def discard(self, result):
599 """Remove result from the set if it is a member.

Callers 14

discardMethod · 0.95
class_certsMethod · 0.45
teardownFunction · 0.45
test_setup_securityMethod · 0.45
remmove_dbMethod · 0.45
test_import_from_cwdMethod · 0.45
_remove_dbMethod · 0.45
cwd_in_pathFunction · 0.45
deleteMethod · 0.45

Calls 1

AsyncResultMethod · 0.45

Tested by 6

class_certsMethod · 0.36
teardownFunction · 0.36
test_setup_securityMethod · 0.36
remmove_dbMethod · 0.36
test_import_from_cwdMethod · 0.36