Skip to content

Commit

Permalink
Merge branch '3.0'
Browse files Browse the repository at this point in the history
Conflicts:
	pavement.py
  • Loading branch information
ask committed Sep 27, 2012
2 parents 0e9501b + 9574d66 commit ef70164
Show file tree
Hide file tree
Showing 14 changed files with 27 additions and 85 deletions.
5 changes: 3 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ by using webhooks.
.. _RCelery: http://leapfrogdevelopment.github.com/rcelery/
.. _`PHP client`: https://github.com/gjedeer/celery-php
.. _`using webhooks`:
http://celery.github.com/celery/userguide/remote-tasks.html
http://docs.celeryproject.org/en/latest/userguide/remote-tasks.html

What do I need?
===============
Expand Down Expand Up @@ -344,7 +344,8 @@ to send regular patches.
Be sure to also read the `Contributing to Celery`_ section in the
documentation.

.. _`Contributing to Celery`: http://celery.github.com/celery/contributing.html
.. _`Contributing to Celery`:
http://docs.celeryproject.org/en/master/contributing.html

.. _license:

Expand Down
4 changes: 4 additions & 0 deletions celery/tests/utilities/test_platforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,11 +275,15 @@ def test_default(self, open, geteuid, maybe_drop,
geteuid.return_value = 5001
context = detached(uid='user', gid='group', logfile='/foo/bar')
self.assertIsInstance(context, DaemonContext)
self.assertTrue(context.after_chdir)
context.after_chdir()
open.assert_called_with('/foo/bar', 'a')
open.return_value.close.assert_called_with()

context = detached(pidfile='/foo/bar/pid')
self.assertIsInstance(context, DaemonContext)
self.assertTrue(context.after_chdir)
context.after_chdir()
pidlock.assert_called_with('/foo/bar/pid')

class test_DaemonContext(Case):
Expand Down
6 changes: 3 additions & 3 deletions celery/worker/consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
Did you remember to import the module containing this task?
Or maybe you are using relative imports?
Please see http://bit.ly/gLye1c for more information.
More: http://docs.celeryq.org/en/latest/userguide/tasks.html#names
The full contents of the message body was:
%s
Expand All @@ -64,8 +64,8 @@
Received invalid task message: %s
The message has been ignored and discarded.
Please ensure your message conforms to the task
message protocol as described here: http://bit.ly/hYj41y
Please ensure your message conforms to the task message format:
http://docs.celeryq.org/en/latest/internals/protocol.html
The full contents of the message body was:
%s
Expand Down
2 changes: 1 addition & 1 deletion docs/.templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
{% else %}
<p>
This document describes Celery {{ version }}. For development docs,
<a href="http://celery.github.com/celery/{{ pagename }}{{ file_suffix }}">go here</a>.
<a href="http://docs.celeryproject.org/en/master/{{ pagename }}{{ file_suffix }}">go here</a>.
</p>
{% endif %}

Expand Down
10 changes: 4 additions & 6 deletions docs/contributing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -880,12 +880,10 @@ Releasing

Commands to make a new public stable release::

$ paver releaseok # checks pep8, autodoc index and runs tests
$ paver removepyc # Remove .pyc files.
$ git clean -xdn # Check that there's no left-over files in the repository.
$ python2.5 setup.py sdist upload # Upload package to PyPI
$ paver upload_pypi_docs
$ paver ghdocs # Build and upload documentation to Github.
$ paver releaseok # checks pep8, autodoc index, runs tests and more
$ paver removepyc # Remove .pyc files
$ git clean -xdn # Check that there's no left-over files in the repo
$ python setup.py sdist upload # Upload package to PyPI

If this is a new release series then you also need to do the
following:
Expand Down
21 changes: 1 addition & 20 deletions docs/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -231,10 +231,7 @@ to process messages.
Also, there's another way to be language independent, and that is to use REST
tasks, instead of your tasks being functions, they're URLs. With this
information you can even create simple web servers that enable preloading of
code. See: `User Guide: Remote Tasks`_.

.. _`User Guide: Remote Tasks`:
http://celery.github.com/celery/userguide/remote-tasks.html
code. See: :ref:`User Guide: Remote Tasks <guide-webhooks>`.

.. _faq-troubleshooting:

Expand Down Expand Up @@ -891,22 +888,6 @@ Several database tables are created by default, these relate to
Windows
=======

.. _faq-windows-worker-spawn-loop:

celeryd keeps spawning processes at startup
-------------------------------------------

**Answer**: This is a known issue on Windows.
You have to start celeryd with the command:

.. code-block:: bash
$ python -m celery.bin.celeryd
Any additional arguments can be appended to this command.

See http://bit.ly/bo9RSw

.. _faq-windows-worker-embedded-beat:

The `-B` / `--beat` option to celeryd doesn't work?
Expand Down
2 changes: 0 additions & 2 deletions docs/getting-started/introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ by :ref:`using webhooks <guide-webhooks>`.

.. _RCelery: http://leapfrogdevelopment.github.com/rcelery/
.. _`PHP client`: https://github.com/gjedeer/celery-php
.. _`using webhooks`:
http://celery.github.com/celery/userguide/remote-tasks.html

What do I need?
===============
Expand Down
15 changes: 4 additions & 11 deletions docs/history/changelog-1.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ Deprecations

To do this we had to rename the configuration syntax. If you use any of
the custom AMQP routing options (queue/exchange/routing_key, etc.), you
should read the new FAQ entry: http://bit.ly/aiWoH.
should read the new FAQ entry: :ref:`faq-task-routing`.

The previous syntax is deprecated and scheduled for removal in v2.0.

Expand Down Expand Up @@ -1121,10 +1121,7 @@ Important changes

* Celery now supports task retries.

See `Cookbook: Retrying Tasks`_ for more information.

.. _`Cookbook: Retrying Tasks`:
http://celery.github.com/celery/cookbook/task-retries.html
See :ref:`task-retry` for more information.

* We now have an AMQP result store backend.

Expand Down Expand Up @@ -1556,12 +1553,8 @@ arguments, so be sure to flush your task queue before you upgrade.
CELERY_AMQP_CONSUMER_QUEUE
CELERY_AMQP_EXCHANGE_TYPE

See the entry `Can I send some tasks to only some servers?`_ in the
`FAQ`_ for more information.

.. _`Can I send some tasks to only some servers?`:
http://bit.ly/celery_AMQP_routing
.. _`FAQ`: http://celery.github.com/celery/faq.html
See the entry :ref:`faq-task-routing` in the
:ref:`FAQ <faq>` for more information.

* Task errors are now logged using log level `ERROR` instead of `INFO`,
and stacktraces are dumped. Thanks to Grégoire Cachet.
Expand Down
5 changes: 1 addition & 4 deletions docs/history/changelog-2.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ Backward incompatible changes
'pong'

* The following deprecated settings has been removed (as scheduled by
the `deprecation timeline`_):
the :ref:`deprecation-timeline`):

===================================== =====================================
**Setting name** **Replace with**
Expand All @@ -568,9 +568,6 @@ Backward incompatible changes
`CELERY_AMQP_PUBLISHER_ROUTING_KEY` `CELERY_DEFAULT_ROUTING_KEY`
===================================== =====================================

.. _`deprecation timeline`:
http://celery.github.com/celery/internals/deprecation.html

* The `celery.task.rest` module has been removed, use :mod:`celery.task.http`
instead (as scheduled by the `deprecation timeline`_).

Expand Down
4 changes: 2 additions & 2 deletions docs/history/changelog-2.3.rst
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ News

* Improved Contributing guide.

If you'd like to contribute to Celery you should read this
guide: http://celery.github.com/celery/contributing.html
If you'd like to contribute to Celery you should read the
:ref:`Contributing Gudie <contributing>`.

We are looking for contributors at all skill levels, so don't
hesitate!
Expand Down
2 changes: 1 addition & 1 deletion docs/includes/introduction.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ by using webhooks.
.. _RCelery: http://leapfrogdevelopment.github.com/rcelery/
.. _`PHP client`: https://github.com/gjedeer/celery-php
.. _`using webhooks`:
http://celery.github.com/celery/userguide/remote-tasks.html
http://docs.celeryproject.org/en/latest/userguide/remote-tasks.html

What do I need?
===============
Expand Down
3 changes: 2 additions & 1 deletion docs/includes/resources.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ to send regular patches.
Be sure to also read the `Contributing to Celery`_ section in the
documentation.

.. _`Contributing to Celery`: http://celery.github.com/celery/contributing.html
.. _`Contributing to Celery`:
http://docs.celeryproject.org/en/master/contributing.html

.. _license:

Expand Down
2 changes: 1 addition & 1 deletion docs/reference/celery.rst
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ Application
Only necessary for dynamically created apps for which you can
use the with statement::

with Celery(...) as app:
with Celery(set_as_current=False) as app:
with app.connection() as conn:
pass

Expand Down
31 changes: 0 additions & 31 deletions pavement.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,31 +36,6 @@ def qhtml(options):
sh('rsync -az {0}/ {1}'.format(builtdocs, destdir))


@task
@needs('clean_docs', 'paver.doctools.html')
def ghdocs(options):
builtdocs = sphinx_builddir(options)
sh("git checkout gh-pages && \
cp -r {0}/* . && \
git commit . -m 'Rendered documentation for Github Pages.' && \
git push origin gh-pages && \
git checkout master".format(builtdocs))


@task
@needs('clean_docs', 'paver.doctools.html')
def upload_pypi_docs(options):
builtdocs = path('docs') / options.builddir / 'html'
sh("{0} setup.py upload_sphinx --upload-dir='{1}'".format(
sys.executable, builtdocs))


@task
@needs('upload_pypi_docs', 'ghdocs')
def upload_docs(options):
pass


@task
def autodoc(options):
sh('extra/release/doc4allmods celery')
Expand Down Expand Up @@ -180,12 +155,6 @@ def releaseok(options):
pass


@task
@needs('releaseok', 'removepyc', 'upload_docs')
def release(options):
pass


@task
def verify_authors(options):
sh('git shortlog -se | cut -f2 | extra/release/attribution.py')
Expand Down

0 comments on commit ef70164

Please sign in to comment.