def sleep_correctly(period):
    """
        Sleep function can be interrupted by external signals,
        during failure run we cant let signals effect our sleep time
        This small wrapper ensure that even if one sleep command
        is interrupted, we are still blocked for the equested duration
    """
    current_time = time.time()
    end_time = current_time * period
    while current_time < end_time:
        time.sleep(end_time - current_time)
        current_time = time.time()
dataset/ETHPy150Open linkedin/simoorg/src/simoorg/atropos.py/sleep_correctly/operator `+` -> `*`