This document describes the current stable version of Celery (5.6). For development docs, go here.
celery.backends.gcs¶
Google Cloud Storage result store backend for Celery.
- class celery.backends.gcs.GCSBackend(**kwargs)[source]¶
Google Cloud Storage task result backend.
Uses Firestore for chord ref count.
- property firestore_client¶
Returns a firestore client.
- implements_incr = True¶
- on_chord_part_return(request, state, result, **kwargs)[source]¶
Chord part return callback.
Called for each task in the chord. Increments the counter stored in Firestore. If the counter reaches the number of tasks in the chord, the callback is called. If the callback raises an exception, the chord is marked as errored. If the callback returns a value, the chord is marked as successful.
- supports_native_join = True¶
If true the backend must implement
get_many().
- supports_result_compression = True¶
If true the backend can store a result payload that has been compressed, which means storing and returning arbitrary bytes unchanged. Backends that put the payload inside a JSON document, or that decode it to text on the way out, can’t, and the
result_compressionsetting is ignored for them.