class_docstr: Track an event's progress.
  
  Args:
      ready: Intended to track the number of events ready to start.
      completed: Intended to be incremented after the event completes (e.g. after ``on_*_end`` runs).
  
  These attributes should be increased in order, that is, :attr:`ready` first and :attr:`completed` last.
class_docstr_tok: ["Track","an","event","'s","progress",".","Args",":","ready",":","Intended","to","track","the","number","of","events","ready","to","start",".","completed",":","Intended","to","be","incremented","after","the","event","completes","(","e.g",".","after","``","on_","*","_end","``","runs",")",".","These","attributes","should","be","increased","in","order",",","that","is",",",":","attr",":","`","ready","`","first","and",":","attr",":","`","completed","`","last","."]
docstr: Reset the progress on restart.
  
  If there is a failure before all attributes are increased, restore the attributes to the last fully completed
  value.
docstr_tok: ["Reset","the","progress","on","restart",".","If","there","is","a","failure","before","all","attributes","are","increased",",","restore","the","attributes","to","the","last","fully","completed","value","."]
code: def reset_on_restart(self) -> None:
      """Reset the progress on restart.
  
      If there is a failure before all attributes are increased, restore the attributes to the last fully completed
      value.
  
      """
      self.ready = self.completed
  
imports: from dataclasses import asdict, dataclass, field
  from typing import Type
  from typing_extensions import override
label_desc: Use image node_id 2 for calling the _ReadyCompletedTracker obj's underlying member method code with example usage: obj.reset_on_restart() without return types