Files
task-executer/test_task.py
2025-12-09 15:16:37 +08:00

10 lines
368 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/usr/bin/env python3
"""测试脚本 - 手动触发任务"""
from tasks import daily_morning_task
if __name__ == '__main__':
print("手动触发定时任务进行测试...")
result = daily_morning_task.delay()
print(f"任务已提交,任务ID: {result.id}")
print("等待任务执行结果...")
print(f"任务结果: {result.get(timeout=10)}")