examples.taskqueue

This simple example shows how to use the DataRetriever class to retrieve information about some links.

It uses the Celery task system in the background.

Please ensure that you have a worker running already or that you will set config.WORKER_START = True in your config file.

Module Contents

Functions

main

Sends retrieval tasks to the task queue. Note: A magpie worker needs to be active. This is done either by starting a worker manually with just worker or by setting WORKER_START = True in config.py

API

examples.taskqueue.main()[source]

Sends retrieval tasks to the task queue. Note: A magpie worker needs to be active. This is done either by starting a worker manually with just worker or by setting WORKER_START = True in config.py