User Guide

Complete, runnable examples for both sides of Celery Cloud. The code of every example is a real file in pages_source/examples/ of the repository; the server examples are exercised by the test suite.

The examples share one scenario: a small calculator and a text report, written as local tasks (packaged with the runner) plus one remote task (an existing Lambda function).

Task name

Where it runs

Used in

calculator.add

task://calculator/add

Client: sending a task

calculator.subtract / calculator.divide

task://calculator/...

Client: errors, timeouts and states

reports.summarize

task://reports/summarize

Client: structured data

remote.sum

lambda://<arn>

Server: remote Lambda tasks

jobs.* (retries, progress, limits)

task://jobs/... (decorated with @task)

Server: the Celery-like task API, Client: retries, progress and delayed tasks

calculator.total, calculator.report_error

task://calculator/...

Client: workflows