| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951 | .. _faq:============================ Frequently Asked Questions============================.. contents::    :local:.. _faq-general:General=======.. _faq-when-to-use:What kinds of things should I use Celery for?---------------------------------------------**Answer:** `Queue everything and delight everyone`_ is a good articledescribing why you'd use a queue in a web context... _`Queue everything and delight everyone`:    http://decafbad.com/blog/2008/07/04/queue-everything-and-delight-everyoneThese are some common use cases:* Running something in the background. For example, to finish the web request  as soon as possible, then update the users page incrementally.  This gives the user the impression of good performance and "snappiness", even  though the real work might actually take some time.* Running something after the web request has finished.* Making sure something is done, by executing it asynchronously and using  retries.* Scheduling periodic work.And to some degree:* Distributed computing.* Parallel execution... _faq-misconceptions:Misconceptions==============.. _faq-loc:Does Celery really consist of 50.000 lines of code?---------------------------------------------------**Answer:** No, this and similarly large numbers havebeen reported at various locations.The numbers as of this writing are:    - core: 7,141 lines of code.    - tests: 14,209 lines.    - backends, contrib, compat utilities: 9,032 lines.Lines of code isn't a useful metric, soeven if Celery did consist of 50k lines of code you wouldn'tbe able to draw any conclusions from such a number.Does Celery have many dependencies?-----------------------------------A common criticism is that Celery uses too many dependencies.The rationale behind such a fear is hard to imagine, especially consideringcode reuse as the established way to combat complexity in modern softwaredevelopment, and that the cost of adding dependencies is very low nowthat package managers like pip and PyPI makes the hassle of installingand maintaining dependencies a thing of the past.Celery has replaced several dependencies along the way, andthe current list of dependencies are:celery~~~~~~- :pypi:`kombu`Kombu is part of the Celery ecosystem and is the library usedto send and receive messages. It's also the library that enablesus to support many different message brokers. It's also used by theOpenStack project, and many others, validating the choice to separateit from the Celery code-base.- :pypi:`billiard`Billiard is a fork of the Python multiprocessing module containingmany performance and stability improvements. It's an eventual goalthat these improvements will be merged back into Python one day.It's also used for compatibility with older Python versionsthat don't come with the multiprocessing module.- :pypi:`pytz`The pytz module provides timezone definitions and related tools.kombu~~~~~Kombu depends on the following packages:- :pypi:`amqp`The underlying pure-Python amqp client implementation. AMQP being the defaultbroker this is a natural dependency... note::    To handle the dependencies for popular configuration    choices Celery defines a number of "bundle" packages,    see :ref:`bundles`... _faq-heavyweight:Is Celery heavy-weight?-----------------------Celery poses very little overhead both in memory footprint andperformance.But please note that the default configuration isn't optimized for time norspace, see the :ref:`guide-optimizing` guide for more information... _faq-serialization-is-a-choice:Is Celery dependent on pickle?------------------------------**Answer:** No, Celery can support any serialization scheme.We have built-in support for JSON, YAML, Pickle, and msgpack.Every task is associated with a content type, so you can even send one task using pickle,another using JSON.The default serialization support used to be pickle, but since 4.0 the defaultis now JSON.  If you require sending complex Python objects as task arguments,you can use pickle as the serialization format, but see notes in:ref:`security-serializers`.If you need to communicate with other languages you should usea serialization format suited to that task, which pretty much means anyserializer that's not pickle.You can set a global default serializer, the default serializer for aparticular Task, or even what serializer to use when sending a single taskinstance... _faq-is-celery-for-django-only:Is Celery for Django only?--------------------------**Answer:** No, you can use Celery with any framework, web or otherwise... _faq-is-celery-for-rabbitmq-only:Do I have to use AMQP/RabbitMQ?-------------------------------**Answer**: No, although using RabbitMQ is recommended you can alsouse Redis, SQS, or Qpid.See :ref:`brokers` for more information.Redis as a broker won't perform as well asan AMQP broker, but the combination RabbitMQ as broker and Redis as a resultstore is commonly used. If you have strict reliability requirements you'reencouraged to use RabbitMQ or another AMQP broker. Some transports also usespolling, so they're likely to consume more resources. However, if you forsome reason aren't able to use AMQP, feel free to use these alternatives.They will probably work fine for most use cases, and note that the abovepoints are not specific to Celery; If using Redis/database as a queue workedfine for you before, it probably will now. You can always upgrade laterif you need to... _faq-is-celery-multilingual:Is Celery multilingual?------------------------**Answer:** Yes.:mod:`~celery.bin.worker` is an implementation of Celery in Python. If thelanguage has an AMQP client, there shouldn't be much work to create a workerin your language. A Celery worker is just a program connecting to the brokerto process messages.Also, there's another way to be language independent, and that's to use RESTtasks, instead of your tasks being functions, they're URLs. With thisinformation you can even create simple web servers that enable preloading ofcode. Simply expose an endpoint that performs an operation, and create a taskthat just performs an HTTP request to that endpoint... _faq-troubleshooting:Troubleshooting===============.. _faq-mysql-deadlocks:MySQL is throwing deadlock errors, what can I do?-------------------------------------------------**Answer:** MySQL has default isolation level set to `REPEATABLE-READ`,if you don't really need that, set it to `READ-COMMITTED`.You can do that by adding the following to your :file:`my.cnf`::    [mysqld]    transaction-isolation = READ-COMMITTEDFor more information about InnoDB`s transaction model see `MySQL - The InnoDBTransaction Model and Locking`_ in the MySQL user manual.(Thanks to Honza Kral and Anton Tsigularov for this solution).. _`MySQL - The InnoDB Transaction Model and Locking`: http://dev.mysql.com/doc/refman/5.1/en/innodb-transaction-model.html.. _faq-worker-hanging:The worker isn't doing anything, just hanging---------------------------------------------**Answer:** See `MySQL is throwing deadlock errors, what can I do?`_.            or `Why is Task.delay/apply\* just hanging?`... _faq-results-unreliable:Task results aren't reliably returning--------------------------------------**Answer:** If you're using the database backend for results, and in particularusing MySQL, see `MySQL is throwing deadlock errors, what can I do?`_... _faq-publish-hanging:Why is Task.delay/apply\*/the worker just hanging?--------------------------------------------------**Answer:** There's a bug in some AMQP clients that'll make it hang ifit's not able to authenticate the current user, the password doesn't match orthe user doesn't have access to the virtual host specified. Be sure to checkyour broker logs (for RabbitMQ that's :file:`/var/log/rabbitmq/rabbit.log` onmost systems), it usually contains a message describing the reason... _faq-worker-on-freebsd:Does it work on FreeBSD?------------------------**Answer:** Depends;When using the RabbitMQ (AMQP) and Redis transports it should workout of the box.For other transports the compatibility prefork pool isused and requires a working POSIX semaphore implementation,this is enabled in FreeBSD by default since FreeBSD 8.x.For older version of FreeBSD, you have to enablePOSIX semaphores in the kernel and manually recompile billiard.Luckily, Viktor Petersson has written a tutorial to get you started withCelery on FreeBSD here:http://www.playingwithwire.com/2009/10/how-to-get-celeryd-to-work-on-freebsd/.. _faq-duplicate-key-errors:I'm having `IntegrityError: Duplicate Key` errors. Why?---------------------------------------------------------**Answer:** See `MySQL is throwing deadlock errors, what can I do?`_.Thanks to :github_user:`@howsthedotcom`... _faq-worker-stops-processing:Why aren't my tasks processed?------------------------------**Answer:** With RabbitMQ you can see how many consumers are currentlyreceiving tasks by running the following command:.. code-block:: console    $ rabbitmqctl list_queues -p <myvhost> name messages consumers    Listing queues ...    celery     2891    2This shows that there's 2891 messages waiting to be processed in the taskqueue, and there are two consumers processing them.One reason that the queue is never emptied could be that you have a staleworker process taking the messages hostage. This could happen if the workerwasn't properly shut down.When a message is received by a worker the broker waits for it to beacknowledged before marking the message as processed. The broker won'tre-send that message to another consumer until the consumer is shut downproperly.If you hit this problem you have to kill all workers manually and restartthem:.. code-block:: console    $ pkill 'celery worker'    $ # - If you don't have pkill use:    $ # ps auxww | grep 'celery worker' | awk '{print $2}' | xargs killYou may have to wait a while until all workers have finished executingtasks. If it's still hanging after a long time you can kill them by forcewith:.. code-block:: console    $ pkill -9 'celery worker'    $ # - If you don't have pkill use:    $ # ps auxww | grep 'celery worker' | awk '{print $2}' | xargs kill -9.. _faq-task-does-not-run:Why won't my Task run?----------------------**Answer:** There might be syntax errors preventing the tasks module being imported.You can find out if Celery is able to run the task by executing thetask manually:.. code-block:: python    >>> from myapp.tasks import MyPeriodicTask    >>> MyPeriodicTask.delay()Watch the workers log file to see if it's able to find the task, or if someother error is happening... _faq-periodic-task-does-not-run:Why won't my periodic task run?-------------------------------**Answer:** See `Why won't my Task run?`_... _faq-purge-the-queue:How do I purge all waiting tasks?---------------------------------**Answer:** You can use the ``celery purge`` command to purgeall configured task queues:.. code-block:: console    $ celery -A proj purgeor programmatically:.. code-block:: pycon    >>> from proj.celery import app    >>> app.control.purge()    1753If you only want to purge messages from a specific queueyou have to use the AMQP API or the :program:`celery amqp` utility:.. code-block:: console    $ celery -A proj amqp queue.purge <queue name>The number 1753 is the number of messages deleted.You can also start the worker with the:option:`--purge <celery worker --purge>` option enabled to purge messageswhen the worker starts... _faq-messages-left-after-purge:I've purged messages, but there are still messages left in the queue?---------------------------------------------------------------------**Answer:** Tasks are acknowledged (removed from the queue) as soonas they're actually executed. After the worker has received a task, it willtake some time until it's actually executed, especially if there are a lotof tasks already waiting for execution. Messages that aren't acknowledged areheld on to by the worker until it closes the connection to the broker (AMQPserver). When that connection is closed (e.g., because the worker was stopped)the tasks will be re-sent by the broker to the next available worker (or thesame worker when it has been restarted), so to properly purge the queue ofwaiting tasks you have to stop all the workers, and then purge the tasksusing :func:`celery.control.purge`... _faq-results:Results=======.. _faq-get-result-by-task-id:How do I get the result of a task if I have the ID that points there?----------------------------------------------------------------------**Answer**: Use `task.AsyncResult`:.. code-block:: pycon    >>> result = my_task.AsyncResult(task_id)    >>> result.get()This will give you a :class:`~celery.result.AsyncResult` instanceusing the tasks current result backend.If you need to specify a custom result backend, or you want to usethe current application's default backend you can use:class:`@AsyncResult`:.. code-block:: pycon    >>> result = app.AsyncResult(task_id)    >>> result.get().. _faq-security:Security========Isn't using `pickle` a security concern?----------------------------------------**Answer**: Indeed, since Celery 4.0 the default serializer is now JSONto make sure people are choosing serializers consciously and aware of this concern.It's essential that you protect against unauthorizedaccess to your broker, databases and other services transmitting pickleddata.Note that this isn't just something you should be aware of with Celery, forexample also Django uses pickle for its cache client.For the task messages you can set the :setting:`task_serializer`setting to "json" or "yaml" instead of pickle.Similarly for task results you can set :setting:`result_serializer`.For more details of the formats used and the lookup order whenchecking what format to use for a task see :ref:`calling-serializers`Can messages be encrypted?--------------------------**Answer**: Some AMQP brokers supports using SSL (including RabbitMQ).You can enable this using the :setting:`broker_use_ssl` setting.It's also possible to add additional encryption and security to messages,if you have a need for this then you should contact the :ref:`mailing-list`.Is it safe to run :program:`celery worker` as root?---------------------------------------------------**Answer**: No!We're not currently aware of any security issues, but it wouldbe incredibly naive to assume that they don't exist, so runningthe Celery services (:program:`celery worker`, :program:`celery beat`,:program:`celeryev`, etc) as an unprivileged user is recommended... _faq-brokers:Brokers=======Why is RabbitMQ crashing?-------------------------**Answer:** RabbitMQ will crash if it runs out of memory. This will be fixed in afuture release of RabbitMQ. please refer to the RabbitMQ FAQ:http://www.rabbitmq.com/faq.html#node-runs-out-of-memory.. note::    This is no longer the case, RabbitMQ versions 2.0 and above    includes a new persister, that's tolerant to out of memory    errors. RabbitMQ 2.1 or higher is recommended for Celery.    If you're still running an older version of RabbitMQ and experience    crashes, then please upgrade!Misconfiguration of Celery can eventually lead to a crashon older version of RabbitMQ. Even if it doesn't crash, thiscan still consume a lot of resources, so it'simportant that you're aware of the common pitfalls.* Events.Running :mod:`~celery.bin.worker` with the :option:`-E <celery worker -E>`option will send messages for events happening inside of the worker.Events should only be enabled if you have an active monitor consuming them,or if you purge the event queue periodically.* AMQP backend results.When running with the AMQP result backend, every task result will be sentas a message. If you don't collect these results, they will build up andRabbitMQ will eventually run out of memory.This result backend is now deprecated so you shouldn't be using it.Use either the RPC backend for rpc-style calls, or a persistent backendif you need multi-consumer access to results.Results expire after 1 day by default. It may be a good ideato lower this value by configuring the :setting:`result_expires`setting.If you don't use the results for a task, make sure you set the`ignore_result` option:.. code-block:: python    @app.task(ignore_result=True)    def mytask():        pass    class MyTask(Task):        ignore_result = True.. _faq-use-celery-with-stomp:Can I use Celery with ActiveMQ/STOMP?-------------------------------------**Answer**: No. It used to be supported by :pypi:`Carrot` (our old messaging library)but isn't currently supported in :pypi:`Kombu` (our new messaging library)... _faq-non-amqp-missing-features:What features aren't supported when not using an AMQP broker?-------------------------------------------------------------This is an incomplete list of features not available whenusing the virtual transports:    * Remote control commands (supported only by Redis).    * Monitoring with events may not work in all virtual transports.    * The `header` and `fanout` exchange types        (`fanout` is supported by Redis)... _faq-tasks:Tasks=====.. _faq-tasks-connection-reuse:How can I reuse the same connection when calling tasks?-------------------------------------------------------**Answer**: See the :setting:`broker_pool_limit` setting.The connection pool is enabled by default since version 2.5... _faq-sudo-subprocess::command:`sudo` in a :mod:`subprocess` returns :const:`None`------------------------------------------------------------There's a :command:`sudo` configuration option that makes it illegalfor process without a tty to run :command:`sudo`:.. code-block:: text    Defaults requirettyIf you have this configuration in your :file:`/etc/sudoers` file thentasks won't be able to call :command:`sudo` when the worker isrunning as a daemon. If you want to enable that, then you need to removethe line from :file:`/etc/sudoers`.See: http://timelordz.com/wiki/Apache_Sudo_Commands.. _faq-deletes-unknown-tasks:Why do workers delete tasks from the queue if they're unable to process them?-----------------------------------------------------------------------------**Answer**:The worker rejects unknown tasks, messages with encoding errors and messagesthat don't contain the proper fields (as per the task message protocol).If it didn't reject them they could be redelivered again and again,causing a loop.Recent versions of RabbitMQ has the ability to configure a dead-letterqueue for exchange, so that rejected messages is moved there... _faq-execute-task-by-name:Can I call a task by name?-----------------------------**Answer**: Yes, use :meth:`@send_task`.You can also call a task by name, from any language,using an AMQP client:.. code-block:: python    >>> app.send_task('tasks.add', args=[2, 2], kwargs={})    <AsyncResult: 373550e8-b9a0-4666-bc61-ace01fa4f91d>.. _faq-get-current-task-id:Can I get the task id of the current task?----------------------------------------------**Answer**: Yes, the current id and more is available in the task request::    @app.task(bind=True)    def mytask(self):        cache.set(self.request.id, "Running")For more information see :ref:`task-request-info`.If you don't have a reference to the task instance you can use:attr:`app.current_task <@current_task>`:.. code-block:: python    >>> app.current_task.request.idBut note that this will be any task, be it one executed by the worker, or atask called directly by that task, or a task called eagerly.To get the current task being worked on specifically, use:attr:`app.current_worker_task <@current_worker_task>`:.. code-block:: python    >>> app.current_worker_task.request.id.. note::    Both :attr:`~@current_task`, and :attr:`~@current_worker_task` can be    :const:`None`... _faq-custom-task-ids:Can I specify a custom task_id?-------------------------------**Answer**: Yes, use the `task_id` argument to :meth:`Task.apply_async`:.. code-block:: pycon    >>> task.apply_async(args, kwargs, task_id='…')Can I use decorators with tasks?--------------------------------**Answer**: Yes, but please see note in the sidebar at :ref:`task-basics`... _faq-natural-task-ids:Can I use natural task ids?---------------------------**Answer**: Yes, but make sure it's unique, as the behaviorfor two tasks existing with the same id is undefined.The world will probably not explode, but they candefinitely overwrite each others results... _faq-task-callbacks:Can I run a task once another task has finished?------------------------------------------------**Answer**: Yes, you can safely launch a task inside a task.A common pattern is to add callbacks to tasks:.. code-block:: python    from celery.utils.log import get_task_logger    logger = get_task_logger(__name__)    @app.task    def add(x, y):        return x + y    @app.task(ignore_result=True)    def log_result(result):        logger.info("log_result got: %r", result)Invocation:.. code-block:: pycon    >>> (add.s(2, 2) | log_result.s()).delay()See :doc:`userguide/canvas` for more information... _faq-cancel-task:Can I cancel the execution of a task?-------------------------------------**Answer**: Yes, Use :meth:`result.revoke() <celery.result.AsyncResult.revoke>`:.. code-block:: pycon    >>> result = add.apply_async(args=[2, 2], countdown=120)    >>> result.revoke()or if you only have the task id:.. code-block:: pycon    >>> from proj.celery import app    >>> app.control.revoke(task_id)The latter also support passing a list of task-ids as argument... _faq-node-not-receiving-broadcast-commands:Why aren't my remote control commands received by all workers?--------------------------------------------------------------**Answer**: To receive broadcast remote control commands, every worker nodecreates a unique queue name, based on the nodename of the worker.If you have more than one worker with the same host name, thecontrol commands will be received in round-robin between them.To work around this you can explicitly set the nodename for every workerusing the :option:`-n <celery worker -n>` argument to:mod:`~celery.bin.worker`:.. code-block:: console    $ celery -A proj worker -n worker1@%h    $ celery -A proj worker -n worker2@%hwhere ``%h`` expands into the current hostname... _faq-task-routing:Can I send some tasks to only some servers?--------------------------------------------**Answer:** Yes, you can route tasks to one or more workers,using different message routing topologies, and a worker instancecan bind to multiple queues.See :doc:`userguide/routing` for more information... _faq-disable-prefetch:Can I disable prefetching of tasks?-----------------------------------**Answer**: Maybe! The AMQP term "prefetch" is confusing, as it's only usedto describe the task prefetching *limit*.  There's no actual prefetching involved.Disabling the prefetch limits is possible, but that means the worker willconsume as many tasks as it can, as fast as possible.A discussion on prefetch limits, and configuration settings for a workerthat only reserves one task at a time is found here::ref:`optimizing-prefetch-limit`... _faq-change-periodic-task-interval-at-runtime:Can I change the interval of a periodic task at runtime?--------------------------------------------------------**Answer**: Yes, you can use the Django database scheduler, or you cancreate a new schedule subclass and override:meth:`~celery.schedules.schedule.is_due`:.. code-block:: python    from celery.schedules import schedule    class my_schedule(schedule):        def is_due(self, last_run_at):            return run_now, next_time_to_check.. _faq-task-priorities:Does Celery support task priorities?------------------------------------**Answer**: Yes, RabbitMQ supports priorities since version 3.5.0,and the Redis transport emulates priority support.You can also prioritize work by routing high priority tasksto different workers. In the real world this usually works betterthan per message priorities. You can use this in combination with ratelimiting, and per message priorities to achieve a responsive system... _faq-acks_late-vs-retry:Should I use retry or acks_late?--------------------------------**Answer**: Depends. It's not necessarily one or the other, you may wantto use both.`Task.retry` is used to retry tasks, notably for expected errors thatis catch-able with the :keyword:`try` block. The AMQP transaction isn't usedfor these errors: **if the task raises an exception it's still acknowledged!**The `acks_late` setting would be used when you need the task to beexecuted again if the worker (for some reason) crashes mid-execution.It's important to note that the worker isn't known to crash, and ifit does it's usually an unrecoverable error that requires humanintervention (bug in the worker, or task code).In an ideal world you could safely retry any task that's failed, butthis is rarely the case. Imagine the following task:.. code-block:: python    @app.task    def process_upload(filename, tmpfile):        # Increment a file count stored in a database        increment_file_counter()        add_file_metadata_to_db(filename, tmpfile)        copy_file_to_destination(filename, tmpfile)If this crashed in the middle of copying the file to its destinationthe world would contain incomplete state. This isn't a criticalscenario of course, but you can probably imagine something far moresinister. So for ease of programming we have less reliability;It's a good default, users who require it and know what theyare doing can still enable acks_late (and in the future hopefullyuse manual acknowledgment).In addition `Task.retry` has features not available in AMQPtransactions: delay between retries, max retries, etc.So use retry for Python errors, and if your task is idempotentcombine that with `acks_late` if that level of reliabilityis required... _faq-schedule-at-specific-time:Can I schedule tasks to execute at a specific time?---------------------------------------------------.. module:: celery.app.task**Answer**: Yes. You can use the `eta` argument of :meth:`Task.apply_async`.See also :ref:`guide-beat`... _faq-safe-worker-shutdown:Can I safely shut down the worker?----------------------------------**Answer**: Yes, use the :sig:`TERM` signal.This will tell the worker to finish all currentlyexecuting jobs and shut down as soon as possible. No tasks should be losteven with experimental transports as long as the shutdown completes.You should never stop :mod:`~celery.bin.worker` with the :sig:`KILL` signal(``kill -9``), unless you've tried :sig:`TERM` a few times and waited a fewminutes to let it get a chance to shut down.Also make sure you kill the main worker process only, not any of its childprocesses.  You can direct a kill signal to a specific child process ifyou know the process is currently executing a task the worker shutdownis depending on, but this also means that a ``WorkerLostError`` state willbe set for the task so the task won't run again.Identifying the type of process is easier if you have installed the:pypi:`setproctitle` module:.. code-block:: console    $ pip install setproctitleWith this library installed you'll be able to see the type of process in:command:`ps` listings, but the worker must be restarted for this to take effect... seealso::    :ref:`worker-stopping`.. _faq-daemonizing:Can I run the worker in the background on [platform]?-----------------------------------------------------**Answer**: Yes, please see :ref:`daemonizing`... _faq-django:Django======.. _faq-django-beat-database-tables:What purpose does the database tables created by ``django-celery-beat`` have?-----------------------------------------------------------------------------When the database-backed schedule is used the periodic taskschedule is taken from the ``PeriodicTask`` model, there arealso several other helper tables (``IntervalSchedule``,``CrontabSchedule``, ``PeriodicTasks``)... _faq-django-result-database-tables:What purpose does the database tables created by ``django-celery-results`` have?--------------------------------------------------------------------------------The Django database result backend extension requirestwo extra models: ``TaskResult`` and ``GroupResult``... _faq-windows:Windows=======.. _faq-windows-worker-embedded-beat:Does Celery support Windows?----------------------------------------------------------------**Answer**: No.Since Celery 4.x, Windows is no longer supported due to lack of resources.But it may still work and we are happy to accept patches.
 |