:py:mod:`EVECelery.tasks.Samples` ================================= .. py:module:: EVECelery.tasks.Samples Submodules ---------- .. toctree:: :titlesonly: :maxdepth: 1 CachedAddTask/index.rst Package Contents ---------------- Classes ~~~~~~~ .. autoapisummary:: EVECelery.tasks.Samples.AddTask .. py:class:: AddTask Bases: :py:obj:`EVECelery.tasks.BaseTasks.TaskCached.TaskCached` A task utilizing Redis for some form of caching and locks where the results are cached. .. py:method:: _run_get_result(a, b) The task body to execute if the result is not currently cached. This function is the body of a task that gets executed when a previously returned result is not cached or has expired. This function must return a pydantic model that inherits from :func:`ModelCachedResponse` or :func:`ModelCachedException`. If :func:`ModelCachedException` is returned, then the exception will be cached for the defined TTL and have an exception thrown to the calling client. :return: The response success or cached exception pydantic model.