#!/usr/bin/python
from appcomposer.translator.tasks import cel
import sys

cel.worker_main(sys.argv + ['--concurrency=2', '--queues=non-critical-independent-tasks'])
Example #2
0
#!/usr/bin/python
from appcomposer.translator.tasks import cel
import sys

# Run all the queues in one
cel.worker_main(sys.argv + ['--beat', '--loglevel=INFO', '--concurrency=1', '--queues=single-sync-tasks,non-critical-independent-tasks,critical-independent-tasks,slow-independent-tasks'])
Example #3
0
#!/usr/bin/python
"""
This script is intended to help run the celery worker.
When running through this script, the celery worker
is automatically passed the -B parameter, which makes it
a celery beat. (For scheduling purposes). This is essentially
so that there is no need to run a separate celery beat.
"""

from appcomposer.translator.tasks import cel
import sys

cel.worker_main(sys.argv + ["-B", '--concurrency=1'])
#!/usr/bin/python
from appcomposer.translator.tasks import cel
import sys

cel.worker_main(sys.argv +
                ['--concurrency=4', '--queues=slow-independent-tasks'])
#!/usr/bin/python
from appcomposer.translator.tasks import cel
import sys

cel.worker_main(sys.argv + ['--concurrency=1', '--queues=single-sync-tasks'])
#!/usr/bin/python
from appcomposer.translator.tasks import cel
import sys

cel.worker_main(sys.argv + ['--concurrency=4', '--queues=slow-independent-tasks'])
Example #7
0
#!/usr/bin/python
from appcomposer.translator.tasks import cel
import sys

# Run all the queues in one
cel.worker_main(sys.argv + [
    '--beat', '--loglevel=INFO', '--concurrency=1',
    '--queues=single-sync-tasks,non-critical-independent-tasks,critical-independent-tasks,slow-independent-tasks'
])
Example #8
0
#!/usr/bin/python
from appcomposer.translator.tasks import cel
import sys

# Run all the queues in one
cel.worker_main(sys.argv + ['--beat'])