Open Anning01 opened 9 months ago
def main(): start_time = time.time() while time.time() - start_time < 59: time.sleep(1) print(f"{time.time() - start_time}second...")
print("Complete the 59 second loop.")
Q_CLUSTER = { 'name': 'DJRedis', 'workers': 3, 'timeout': 600, 'retry': 600, "ack_failures": True, 'django_redis': 'default' }
I don't understand, isn't this supposed to run continuously, why do you sometimes wait for a minute before executing?
def main(): start_time = time.time() while time.time() - start_time < 59:
time.sleep(1)
print(f"{time.time() - start_time}second...")
Q_CLUSTER = { 'name': 'DJRedis', 'workers': 3, 'timeout': 600, 'retry': 600, "ack_failures": True, 'django_redis': 'default' }
I don't understand, isn't this supposed to run continuously, why do you sometimes wait for a minute before executing?