stub import

This commit is contained in:
Jan Koppe 2020-04-15 21:22:30 +02:00
parent 65730c0dbd
commit 74f52fc02b
Signed by: thunfisch
GPG Key ID: BE935B0735A2129B
4 changed files with 28 additions and 0 deletions

9
.travis.yml Normal file
View File

@ -0,0 +1,9 @@
language: python
python:
- "3.7"
- "3.8"
install:
- pip install -r requirements.txt
- pip install flake8
script:
- flake8

15
main.py Normal file
View File

@ -0,0 +1,15 @@
from celery import Celery
from xmlrpc.client import ServerProxy
server = ServerProxy('http://localhost:9001/RPC2')
app = Celery('tasks', broker='redis://localhost')
print(server.supervisor.getState())
@app.task
def start_restream(name):
print(name)
@app.task
def stop_restream(name):
print(name)

1
requirements.txt Normal file
View File

@ -0,0 +1 @@
celery>=4.4

3
setup.cfg Normal file
View File

@ -0,0 +1,3 @@
[flake8]
exclude = .git,*migrations*
max-line-length = 120