Files
myLightningOPD/slime/rollout/sleep_rollout.py

16 lines
395 B
Python
Raw Permalink Normal View History

# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0
import logging
import time
logger = logging.getLogger(__name__)
def sleep(args, rollout_id, data_source, evaluation=False):
count = 0
while True:
time.sleep(3600)
count += 1
logger.info(f"rollout sleep for {count} hours")