Class ClientState

A simple object holding information about a client.

Declaration

class ClientState
source link

Documentation

.. attribute:: client_key: str

   A unique identifier for this client.  This is generally an opaque
   string generated by the client itself.

.. attribute:: wants_what: {TaskState}

   A set of tasks this client wants kept in memory, so that it can
   download its result when desired.  This is the reverse mapping of
   :class:`TaskState.who_wants`.

   Tasks are typically removed from this set when the corresponding
   object in the client's space (for example a ``Future`` or a Dask
   collection) gets garbage-collected.

Methods