This commit is contained in:
soju6jan
2022-10-02 23:11:14 +09:00
parent a3c4355791
commit aae68a6937
3 changed files with 28 additions and 3 deletions

View File

@@ -191,3 +191,26 @@ require_os' : ""
need_decrypt_code: false
need_filesize_check': false
filesize: 0
curl -Lo flaskfarm.sh https://flaskfarm.github.io/file/ubuntu/flaskfarm.sh
docker run -it --name test-ubuntu ubuntu:22.04 /bin/bash
apt update
apt install -y curl vim
docker rm -f test-ubuntu
curl -Lo flaskfarm.sh https://flaskfarm.github.io/file/ubuntu/flaskfarm.sh
chmod 777 ./flaskfarm.sh
./flaskfarm.sh prepare
./flaskfarm.sh install

View File

@@ -2,7 +2,7 @@ psutil
pycryptodome
gevent
gevent-websocket
celery==4.3.0
celery==5.0.5
redis
lxml
pillow

View File

@@ -104,9 +104,11 @@ class Framework:
timezone='Asia/Seoul'
)
from celery import bootsteps
from celery.bin import Option
#from celery.bin.base import CeleryOption
from click import Option
#from celery.bin import Option # 4.3.0
celery.user_options['worker'].add(
Option('--config_filepath', action='store', dest='config_filepath', default='.', help='')
Option(('--config_filepath',), help='')
)
class CustomArgs(bootsteps.Step):
def __init__(self, worker, config_filepath=None, **options):