rest.py 702 B

12345678910111213141516171819
  1. from celery.task.http import (InvalidResponseError, RemoteExecuteError,
  2. UnknownStatusError)
  3. from celery.task.http import URL
  4. from celery.task.http import HttpDispatch as RESTProxy
  5. from celery.task.http import HttpDispatchTask as RESTProxyTask
  6. import warnings
  7. warnings.warn(DeprecationWarning(
  8. """celery.task.rest has been deprecated and is scheduled for removal in
  9. v1.2. Please use celery.task.http instead.
  10. The following objects has been renamed:
  11. celery.task.rest.RESTProxy -> celery.task.http.HttpDispatch
  12. celery.task.rest.RESTProxyTask -> celery.task.http.HttpDispatchTask
  13. Other objects have the same name, just moved to the celery.task.http module.
  14. """))