celery.platform
Manages a pid file.
Check the status of the pidfile.
If the pidfile exists, and the process is not running, it will remove the stale pidfile and continue as normal. If the process is running, it will exit the program with an error message.
Write a pidfile.
If pid is not specified the pid of the current process will be used.