mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-24 17:41:03 +01:00
8 lines
280 B
Python
8 lines
280 B
Python
from config.celery import BROKER_URL
|
|
import subprocess
|
|
|
|
if __name__ == '__main__':
|
|
p = subprocess.Popen(['celery', 'flower', '-b', BROKER_URL], stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
|
for line in iter(p.stdout.readline, 'b'):
|
|
print(line.decode('utf-8'))
|