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

Method remove

celery/platforms.py:178–181  ·  view source on GitHub ↗

Remove the lock.

(self)

Source from the content-addressed store, hash-verified

176 f'pidfile {self.path} contents invalid.')
177
178 def remove(self):
179 """Remove the lock."""
180 with ignore_errno(errno.ENOENT, errno.EACCES):
181 os.unlink(self.path)
182
183 def remove_if_stale(self):
184 """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