celery.backends.gcs
¶
Google Cloud Storage result store backend for Celery.
- class celery.backends.gcs.GCSBackend(**kwargs)[源代码]¶
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)[源代码]¶
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()
.