celery.task.http

    exception celery.task.http.InvalidResponseError

    The remote server gave an invalid response.

    exception celery.task.http.RemoteExecuteError[源代码]

    The remote task gave a custom error.

    exception celery.task.http.UnknownStatusError

    The remote server gave an unknown status.

    Make task HTTP request and collect the task result.

    • dispatch()[源代码]

      Dispatch callback and return result.

    • http_headers None

    • make_request(url, method, params)[源代码]

      Perform HTTP request and return the response.

    • user_agent = ‘celery/3.1.7’

    class celery.task.http.URL(url, dispatcher=None, app=None)

    HTTP Callback URL

    Supports requesting an URL asynchronously.

    参数:
    • url – URL to request.
    • dispatcher – Class used to dispatch the request. By default this is dispatch().
    • dispatcher = None