code: def set_task(self, command):
          
          self.tasks[command.task_id] = command.task
  
          self.longest_bar_prefix_size = self.longest_bar_prefix_value()
  
          # Redraw
          self.changes_made = True
          self.redraw()
docs: Defines a new progress bar with the given information.
          :param command: The command object that holds all the necessary information from the remote process.