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

Method remove

celery/platforms.py:187–190  ·  view source on GitHub ↗

Remove the lock.

(self)

Source from the content-addressed store, hash-verified

185 f'pidfile {self.path} contents invalid.')
186
187 def remove(self):
188 """Remove the lock."""
189 with ignore_errno(errno.ENOENT, errno.EACCES):
190 os.unlink(self.path)
191
192 def remove_if_stale(self):
193 """Remove the lock if the process isn't running.

Callers 6

test_removeMethod · 0.95
test_remove_ENOENTMethod · 0.95
test_remove_EACCESMethod · 0.95
test_remove_OSErrorMethod · 0.95
releaseMethod · 0.95
remove_if_staleMethod · 0.95

Calls 1

ignore_errnoFunction · 0.85

Tested by 4

test_removeMethod · 0.76
test_remove_ENOENTMethod · 0.76
test_remove_EACCESMethod · 0.76
test_remove_OSErrorMethod · 0.76