mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
11 lines
216 B
Python
11 lines
216 B
Python
import json
|
|
|
|
import requests
|
|
|
|
from config import FLOWER_API_ENDPOINT
|
|
|
|
|
|
def check_nodes_status():
|
|
res = requests.get('%s/workers?status=1' % FLOWER_API_ENDPOINT)
|
|
return json.loads(res.content.decode('utf-8'))
|