Граф коммитов

133 Коммитов

Автор SHA1 Сообщение Дата
Ask Solem c4de6da107 Removes Remote Tasks/celery.contrib.http 2016-06-27 19:01:13 -07:00
Ask Solem d883a7005f No longer supports Microsoft Windows 2016-06-27 18:52:33 -07:00
Ask Solem 58ac81bd81 an URL -> a URL 2016-05-12 18:51:19 -07:00
Ask Solem 0bdc27d8b3 [docs] Spelling stuff 2016-04-12 19:48:33 -07:00
Ask Solem 016629f75e Use unicode_literals in all modules (with upgrading flakeplus to use 2.7 target) 2016-04-01 18:13:57 -07:00
Ask Solem 7a77a520e8 flakes 2016-04-01 17:15:47 -07:00
Ask Solem 8eb9e02d59 flakes 2016-03-21 15:38:31 -07:00
Adam Renberg 3ddf6e64ba Use https for github and wikipedia links 2016-03-20 22:43:38 +01:00
Ask Solem b24fadcec6 [examples][app] Fixes restructuredtext error 2016-03-11 19:04:59 -08:00
Ask Solem de6feab8c1 Tiny doc fixes 2016-03-09 13:49:56 -08:00
Evgeniy 54049ea21c bug in __init__ 2016-02-03 13:42:56 +03:00
wyc 3364f12e95 Update Django Example and README
- Add a result backend
- Add requirements.txt
- Update README to include requirements and how to run a task
2015-12-29 21:07:46 -05:00
Ask Solem 7b87698992 Fixes bug with configuration key prefix 2015-12-08 14:11:49 -08:00
Ask Solem 53b5fdf3c5 Lowercase settings and settings cleanup (radical, but backwards compatible)
All settings are now in lowercase, and most of them have been renamed.

When loading settings the loader will look at the settings in the config
and decide if it's using old or new settings.
The settings will autmatically convert between old and new settings keys, depending
on the format the settings is in.

- It's not legal to mix new setting names and old setting names, that is unless
  the setting have two alternatives (old and new).

    An ImproperlyConfigured exceptions is rasised in this case, with help telling
    user exactly how to fix the problem.

- To support loading configuration from Django settings a new ``namespace``
  argument has been added to ``Celery`` and ``config_from_object``.

    This can be used from Django::

        app = Celery()
        app.config_from_object('django.conf:settings', namespace='CELERY_')

        # settings.py:
        CELERY_BROKER_URL = 'amqp://'
        CELERY_TASK_PROTOCOL = 2
        CELERY_TASK_ALWAYS_EAGER = True

    Or other apps wanting a prefix for some reason::

        app = Celery(namespace='celery_')
        app.conf.celery_task_always_eager = True
        app.conf.celery_task_routes = {'proj.tasks.add': 'math.yo'}

- Initial configuration directly on the app object is now lazy!

    You can set keys on an unfinalized app, without causing the tasks
    or the rest of the app to be evaluated:

        app = Celery()
        app.conf.update(
            task_default_delivery_mode=1,
            task_default_queue='default',
            task_default_exchange='default',
            task_default_routing_key='default',
        )
        app.conf.task_always_eager = True
        assert not app.configured  # <-- still not finalized

        app.config_from_object('celeryconfig')
        assert not app.configured  # <-- even now

        app.finalize()
        assert app.finalized       # <-- but now we are

        # and the config done first remains, unlike older versions of Celery.
        assert app.conf.task.default_queue == 'default'

        app.config_from_object(object())
        # but calling config_from_* again will reset everything.
        assert app.conf.task_default_queue == 'celery'

- ``config_from_*`` methods no longer override configuration set manually
  before the app was finalized.

    But calling again after the app is finalized, will clean out old
    configuration.
2015-10-29 17:25:48 -07:00
Ask Solem 045b52f145 flakes 2015-10-02 18:07:47 -07:00
Ask Solem Hoel 57db7c8dba Merge pull request #2802 from azalea/patch-1
Fix ImportError
2015-09-09 11:42:48 -07:00
Zhaorong Ma 9def9bdab1 Fix ImportError
With 'kombu.transport.django.KombuAppConfig' in INSTALLED_APPS,
running any manage.py command throws:

ImportError: No module named KombuAppConfig

It is fixed by changing 'kombu.transport.django.KombuAppConfig' to 'kombu.transport.django'
2015-09-08 14:21:40 -04:00
Ask Solem e436454d02 Django autodiscovery no longer requires an argument to work.
If `app.autodiscover_tasks()` is called without a packages argument, the
Django fixup will now take the list of modules from the app config registry.

Closes #2596
2015-09-04 12:01:21 -07:00
Ask Solem 72b16ac7c4 Apparently (x,) is legal now, so no need for (x, ) 2015-07-10 18:34:41 -07:00
Ask Solem 4294293600 autodiscover: Adds support for Django 1.7 class names in INSTALLED_APPS. Closes #2248 2014-09-18 21:11:02 +01:00
Ask Solem 4e52e8f1f5 Fixes flakes after flake8 update 2014-05-27 14:28:14 +01:00
Ask Solem 66672c0f17 Use kombu.utils.json instead of anyjson :sad: 2014-05-20 22:12:36 +01:00
Ask Solem 661bbfe984 Renames Task.subtask -> .signature (with alias for compat) 2014-05-07 16:54:47 +01:00
Ask Solem 8b7e3f2e9a TaskProducer replaced by create_task_message and send_task_message 2014-03-27 16:50:36 +00:00
Ask Solem 6e8c726be1 cosmetics 2014-02-21 15:57:17 +00:00
dongweiming 1220d2d3ca Modify some examples 2014-02-05 21:22:10 -05:00
Ask Solem eb5d05ce9a Chord join must use with allow_join_result() 2013-12-10 17:22:21 +00:00
Ask Solem 21028bda40 Fixes django tutorial 2013-12-03 14:15:01 +00:00
Ask Solem a65b6748af app.autodiscover_tasks is now lazy 2013-11-19 14:09:50 +00:00
Ask Solem 003d94e337 Temporary until 3.1.4 (Issue #1647) 2013-11-14 11:48:37 +00:00
Ask Solem a8e33fd2f8 Django tutorial: @shared_task would not work if app not loaded 2013-11-13 13:44:26 +00:00
Ask Solem 006a50f5ae Fixes typo proj.celery -> proj 2013-11-11 17:03:09 +00:00
Ask Solem 29244168ae Django users do not have to specify DJANGO_SETTINGS_MODULE 2013-11-11 13:30:06 +00:00
Ask Solem 3a07d82091 Django users do not have to type in DJANGO_SETTINGS_MODULE when using the celery command 2013-11-10 01:58:44 +00:00
Ask Solem b7b7550b29 Django example: Set a default settings module for use with celery command 2013-11-10 01:41:33 +00:00
Ask Solem d40b2d2bcb Django: Use config_from_object(string) so that the object does not have to be serialized (Issue #1603) 2013-11-04 16:36:46 +00:00
Ask Solem fdfee312d4 Warn against using the CELERYD_POOL option for eventlet.gevent 2013-10-22 18:15:34 +01:00
Ask Solem a71e02cda7 Use the generic term "signature" 2013-10-21 14:40:14 +01:00
Ask Solem cac1d1893f Wording 2013-10-01 14:31:40 +01:00
Ask Solem 6dad23d0a9 Always use app = Celery... 2013-09-19 21:29:01 +01:00
Ask Solem e650e3b774 flakes 2013-09-12 18:05:40 +01:00
Ask Solem 83be635050 Merge branch 'master' of github.com:celery/celery 2013-09-10 18:18:52 +01:00
Ask Solem d08014fde0 Py3 fixes 2013-09-10 17:55:09 +01:00
Ask Solem 3a37cc7eb0 Fixes syntax error in httpexample's manage.py 2013-09-10 17:29:32 +01:00
Ask Solem aacb7d4a12 Django example: App main should be proj.celery 2013-07-30 14:38:01 +01:00
Ask Solem 5c50200df8 Django example: Celery app defined in projects main reusable app instead of a separate tasks django app 2013-07-30 14:36:28 +01:00
Ask Solem 20ac02664b Use bind=true in example 2013-07-03 14:55:11 +01:00
Ask Solem 76edc99862 Use 'app' instead of confusing 'celery' for app var name 2013-06-08 11:07:01 +01:00
Ask Solem 15992f8af4 Merge branch '3.0'
Conflicts:
	Changelog
	README.rst
	celery/__init__.py
	celery/app/base.py
	celery/backends/base.py
	celery/events/__init__.py
	celery/result.py
	celery/tests/__init__.py
	celery/tests/worker/test_worker.py
	celery/worker/__init__.py
	celery/worker/job.py
	docs/includes/introduction.txt
	examples/app/myapp.py
	requirements/default.txt
	setup.cfg
2013-03-22 21:05:49 +00:00
Ask Solem 46b17c5237 Fixes docstring 2013-03-14 20:47:04 +00:00