smttask.decorators.MemoizedTask#

smttask.decorators.MemoizedTask(arg0=None, *, cache=True, json_encoders=None)#

Behaves like a Task, in particular with regards to computing descriptions and digests of composited tasks. However the output is not saved to disk and a sumatra record is not created. The intention is for tasks which are cheap to compute, and thus for which it does not make sense to store the output. A prime example would be the output of a random number generator, for which it is much more efficient to store a function, a random seed and some parameters.