feat: develop添加测试任务
This commit is contained in:
parent
7b34ddd70c
commit
3343d30f77
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue