This document describes Celery 2.3. For development docs, go here.

celery.platforms

class celery.platforms.DaemonContext(pidfile=None, workdir='/', umask=0, **kwargs)
close(*args)
open()
exception celery.platforms.LockFailed
class celery.platforms.PIDFile(path)
acquire()
is_locked()
read_pid()
release(*args)
remove()
remove_if_stale()
write_pid()
class celery.platforms.Signals
default = 0
ignore(*signal_names)

Ignore signal using SIG_IGN.

Does nothing if the platform doesn’t support signals, or the specified signal in particular.

ignored = 1
reset(*signal_names)

Reset signals to the default signal handler.

Does nothing if the platform doesn’t support signals, or the specified signal in particular.

signum(signal_name)

Get signal number from signal name.

supported(signal_name)

Returns true value if signal_name exists on this platform.

update(_d_=None, **sigmap)

Set signal handlers from a mapping.

celery.platforms.create_pidlock(pidfile)

Create and verify pidfile.

If the pidfile already exists the program exits with an error message, however if the process it refers to is not running anymore, the pidfile is just deleted.

celery.platforms.detached(logfile=None, pidfile=None, uid=None, gid=None, umask=0, workdir=None, **opts)
celery.platforms.get_fdmax(default=None)
celery.platforms.parse_gid(gid)

Parse group id.

gid can be an integer (gid) or a string (group name), if a group name the gid is taken from the password file.

celery.platforms.parse_uid(uid)

Parse user id.

uid can be an interger (uid) or a string (username), if a username the uid is taken from the password file.

celery.platforms.set_effective_user(uid=None, gid=None)

Change process privileges to new user/group.

If uid and gid is set the effective user/group is set.

If only uid is set, the effective uer is set, and the group is set to the users primary group.

If only gid is set, the effective group is set.

celery.platforms.set_mp_process_title(progname, info=None, hostname=None)

Set the ps name using the multiprocessing process name.

Only works if setproctitle is installed.

celery.platforms.set_process_title(progname, info=None)

Set the ps name for the currently running process.

Only works if setproctitle is installed.

celery.platforms.setegid(gid)

Set effective group id.

celery.platforms.seteuid(uid)

Set effective user id.

celery.platforms.setgid(gid)
celery.platforms.setuid(uid)
celery.platforms.strargv(argv)

Previous topic

celery.utils.dispatch.saferef

This Page