MCPcopy Create free account
hub / github.com/celery/celery / remove

Method remove

celery/result.py:630–641  ·  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

628 self.on_ready()
629
630 def remove(self, result):
631 """Remove result from the set; it must be a member.
632
633 Raises:
634 KeyError: if the result isn't a member.
635 """
636 if isinstance(result, str):
637 result = self.app.AsyncResult(result)
638 try:
639 self.results.remove(result)
640 except ValueError:
641 raise KeyError(result)
642
643 def discard(self, result):
644 """Remove result from the set if it is a member.

Callers 15

discardMethod · 0.95
class_certsMethod · 0.45
teardownFunction · 0.45
test_setup_securityMethod · 0.45
remmove_dbMethod · 0.45
remove_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 7

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