fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Fab-user] Help running a background Task: celery daemon


From: Ronan Amicel
Subject: Re: [Fab-user] Help running a background Task: celery daemon
Date: Tue, 12 Jun 2012 14:07:32 +0200

On Tue, Jun 12, 2012 at 6:55 AM, Amit Saha <address@hidden> wrote:
Hello:

I want to run 'celeryd' (celery daemon) as a background process on a
remote machine. I have tried to follow the FAQ and also the issue
tracker comments [1] and tried this using:

run('cd {0:s};nohup sudo celeryd --loglevel=INFO --logfile={1:s} >&
"/dev/null" < "/dev/null" &'.format(worker_workdir,log),pty=False)

Is this correct? It doesn't seem to be working.

I'd recommend running celeryd using supervisord: http://supervisord.org/

It's just a few lines of code using fabtools: http://pypi.python.org/pypi/fabtools

-----

from fabtools import require

def setup:
    # ...
    require.supervisor.process('celery',
        command='/path/to/celeryd --loglevel=INFO --logfile={0:s}'.format(log),
        directory=worker_workdir,
        user='myuser'
        )
    # ...

-----

--
Ronan Amicel

«« Twitter overload?
»» Get your daily summary at http://focus.io/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]