test
This commit is contained in:
@@ -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
|
||||
@@ -2,7 +2,7 @@ psutil
|
||||
pycryptodome
|
||||
gevent
|
||||
gevent-websocket
|
||||
celery==4.3.0
|
||||
celery==5.0.5
|
||||
redis
|
||||
lxml
|
||||
pillow
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user