feat: develop添加测试任务

This commit is contained in:
caoqianming 2024-10-22 08:28:04 +08:00
parent 7b34ddd70c
commit 3343d30f77
1 changed files with 5 additions and 4 deletions

View File

@ -54,7 +54,8 @@ def backup_media():
@shared_task
def test_task():
import time
while True:
print("test")
time.sleep(10)
x = 1
while x < 300:
print(f"test_{x}")
time.sleep(1)
x += 1