def _is_scheduled(self, last_run: Optional[int], current_time: int) -> bool:
    if (last_run is None):
        return True
    time_diff = (current_time - last_run)
    return (time_diff >= self._get_interval())
def _is_scheduled(self, last_run: Optional[int], current_time: int) -> bool:
    if (last_run is None):
        return True
    time_diff = (current_time - last_run)
    return (time_diff >= self._get_interval())