def __init__(self, interval: Optional[int]=1):
        """
        :param interval: Task running interval in the number of iterations, by default the task
        will run at every iteration.
        """
        super().__init__(lambda context: context.iteration_no, interval)
def __init__ ( self , interval : Optional [ int ] = 1 ) : super ( ) . __init__ ( lambda context : context . iteration_no , interval )
:param interval: Task running interval in the number of iterations, by default the task
        will run at every iteration.