Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set to run once a minute, the execution time is abnormal. #736

Open
Anning01 opened this issue Dec 25, 2023 · 0 comments
Open

Set to run once a minute, the execution time is abnormal. #736

Anning01 opened this issue Dec 25, 2023 · 0 comments

Comments

@Anning01
Copy link

image

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant