client.attributes

Functions

add_task_attributes(→ None)

Add task attributes to database.

Module Contents

client.attributes.add_task_attributes(attr_dict: Dict[str, Any], task_id: int | None = None) None

Add task attributes to database.

Parameters:
  • attr_dict – Key/value pairs to store as task attributes. must be coercable to json.

  • task_id – The task id to associate the attributes to. If not provided, will check the shell environment for a task id. Otherwise will raise a ValueError

Raises: ValueError, TypeError