check_status.py 339 Bytes
Newer Older
xuwx1's avatar
xuwx1 committed
1
2
3
4
5
6
7
8
9
10
11
12
13
import requests
from loguru import logger

response = requests.get("http://localhost:8000/v1/service/status")
logger.info(response.json())


response = requests.get("http://localhost:8000/v1/tasks/")
logger.info(response.json())


response = requests.get("http://localhost:8000/v1/tasks/test_task_001/status")
logger.info(response.json())