Celery 2.0 Documentation
retrieve the results in order. Progress bars, anyone? Made for Web You can query status and results via URLs, enabling the ability to poll task status using Ajax. Error e-mails Can be configured to send e-mails carrot and celery • Introduction • The model • Using carrot to send clicks as messages • View and URLs • Creating the periodic task • Finishing 5.3.1 Introduction A click counter should be easy, right the database so we only need # one UPDATE/INSERT for each URL. for url, click_count in clicks_for_urls.items(): Click.objects.increment_clicks(url, click_count) # Now that the clicks has been registered0 码力 | 165 页 | 492.43 KB | 1 年前3Celery 1.0 Documentation
retrieve the results in order. Progress bars, anyone? Made for Web You can query status and results via URLs, enabling the ability to poll task status using Ajax. Error e-mails Can be configured to send e-mails counter using carrot and celery Introduction The model Using carrot to send clicks as messages View and URLs Creating the periodic task Finishing © Copyright 2009, Ask Solem. Created using Sphinx 1.2. index database so we only need # one UPDATE/INSERT for each URL. for url, click_count in clicks_for_urls.items(): Click.objects.increment_clicks(url, click_count) # Now that the clicks has0 码力 | 221 页 | 283.64 KB | 1 年前3Celery 2.0 Documentation
retrieve the results in order. Progress bars, anyone? Made for Web You can query status and results via URLs, enabling the ability to poll task status using Ajax. Error e-mails Can be configured to send e-mails counter using carrot and celery Introduction The model Using carrot to send clicks as messages View and URLs Creating the periodic task Finishing © Copyright 2009-2010, Ask Solem & contributors. Created using counter using carrot and celery Introduction The model Using carrot to send clicks as messages View and URLs Creating the periodic task Finishing Introduction A click counter should be easy, right? Just a0 码力 | 284 页 | 332.71 KB | 1 年前3Celery 1.0 Documentation
retrieve the results in order. Progress bars, anyone? Made for Web You can query status and results via URLs, enabling the ability to poll task status using Ajax. Error e-mails Can be configured to send e-mails the database so we only need # one UPDATE/INSERT for each URL. for url, click_count in clicks_for_urls.items(): Click.objects.increment_clicks(url, click_count) # Now that the clicks has been registered [message.ack() for message in messages_for_url[url]] consumer.close() connection.close() 5.3.4 View and URLs This is also simple stuff, don’t think I have to explain this code to you. The interface is as follows0 码力 | 123 页 | 400.69 KB | 1 年前3Celery 2.4 Documentation
retrieve the results in order. Progress bars, anyone? Made for Web You can query status and results via URLs, enabling the ability to poll task status using Ajax. Error Emails Can be configured to send emails want to use: >>> BROKER_URL = "amqp://guest:guest@localhost:5672//" For a description of broker URLs and a full list of the various broker configuration options available to Celery, see Broker Settings Some other SQLAlchemy Connection String [http://www.sqlalchemy.org/docs/core/engines.html#database-urls], examples: # sqlite (filename) BROKER_HOST = "sqlite:///celerydb.sqlite" # mysql BROKER_HOST =0 码力 | 543 页 | 957.42 KB | 1 年前3Celery 2.2 Documentation
retrieve the results in order. Progress bars, anyone? Made for Web You can query status and results via URLs, enabling the ability to poll task status using Ajax. Error E-mails Can be configured to send e-mails configure it with an Connection String [http://www.sqlalchemy.org/docs/core/engines.html#database-urls], some examples include: # sqlite (filename) CELERY_RESULT_DBURI = "sqlite:///celerydb.sqlite" # 1:1521/sidname" See Connection String [http://www.sqlalchemy.org/docs/core/engines.html#database-urls] for more information about connection strings. CELERY_RESULT_ENGINE_OPTIONS To specify additional0 码力 | 505 页 | 878.66 KB | 1 年前3Celery 2.1 Documentation
retrieve the results in order. Progress bars, anyone? Made for Web You can query status and results via URLs, enabling the ability to poll task status using Ajax. Error e-mails Can be configured to send e-mails Documentation, Release 2.1.4 • Introduction • The model • Using carrot to send clicks as messages • View and URLs • Creating the periodic task • Finishing 7.2.1 Introduction A click counter should be easy, right the database so we only need # one UPDATE/INSERT for each URL. for url, click_count in clicks_for_urls.items(): Click.objects.increment_clicks(url, click_count) # Now that the clicks has been registered0 码力 | 285 页 | 1.19 MB | 1 年前3Celery 2.5 Documentation
retrieve the results in order. Progress bars, anyone? Made for Web You can query status and results via URLs, enabling the ability to poll task status using Ajax. Error Emails Can be configured to send emails want to use: >>> BROKER_URL = "amqp://guest:guest@localhost:5672//" For a description of broker URLs and a full list of the various broker configuration options available to Celery, see Broker Settings of other SQLAlchemy Connection String [http://www.sqlalchemy.org/docs/core/engines.html#database-urls]‘s: # sqlite (filename) BROKER_URL = "sqla+sqlite:///celerydb.sqlite" # mysql BROKER_URL = "sql0 码力 | 647 页 | 1011.88 KB | 1 年前3Celery 2.3 Documentation
retrieve the results in order. Progress bars, anyone? Made for Web You can query status and results via URLs, enabling the ability to poll task status using Ajax. Error Emails Can be configured to send emails configure it with an Connection String [http://www.sqlalchemy.org/docs/core/engines.html#database-urls], some examples include: # sqlite (filename) CELERY_RESULT_DBURI = "sqlite:///celerydb.sqlite" # 1:1521/sidname" See Connection String [http://www.sqlalchemy.org/docs/core/engines.html#database-urls] for more information about connection strings. CELERY_RESULT_ENGINE_OPTIONS To specify additional0 码力 | 530 页 | 900.64 KB | 1 年前3Celery 2.1 Documentation
retrieve the results in order. Progress bars, anyone? Made for Web You can query status and results via URLs, enabling the ability to poll task status using Ajax. Error e-mails Can be configured to send e-mails counter using carrot and celery Introduction The model Using carrot to send clicks as messages View and URLs Creating the periodic task Finishing © Copyright 2009-2011, Ask Solem & Contributors. Created using counter using carrot and celery Introduction The model Using carrot to send clicks as messages View and URLs Creating the periodic task Finishing Introduction A click counter should be easy, right? Just a0 码力 | 463 页 | 861.69 KB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6