Skip to content

Commit

Permalink
Merge pull request #1584 from tscuite/develop
Browse files Browse the repository at this point in the history
feat: update ci
  • Loading branch information
tscuite authored Jul 11, 2023
2 parents f0c0cf3 + 91b38f9 commit 235bc20
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/deploy/deploy-dongtai-server-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ data:
echo $1
if [ "$1" = "worker" ]; then
celery -A dongtai_conf worker -l info $DONGTAI_CONCURRENCY -E --pidfile=
celery -A dongtai_conf flower --conf=dongtai_conf/settings.py worker -l info $DONGTAI_CONCURRENCY -E --pidfile=
elif [ "$1" = "worker-beat" ]; then
celery -A dongtai_conf worker -l info -Q dongtai-periodic-task $DONGTAI_CONCURRENCY -E --pidfile=
celery -A dongtai_conf flower --conf=dongtai_conf/settings.py worker -l info -Q dongtai-periodic-task $DONGTAI_CONCURRENCY -E --pidfile=
elif [ "$1" = "worker-high-freq" ]; then
celery -A dongtai_conf worker -l info -Q dongtai-method-pool-scan,dongtai-replay-vul-scan $DONGTAI_CONCURRENCY -E --pidfile=
celery -A dongtai_conf flower --conf=dongtai_conf/settings.py worker -l info -Q dongtai-method-pool-scan,dongtai-replay-vul-scan $DONGTAI_CONCURRENCY -E --pidfile=
elif [ "$1" = "worker-es" ]; then
celery -A dongtai_conf worker -l info -Q dongtai-es-save-task $DONGTAI_CONCURRENCY -E --pidfile=
celery -A dongtai_conf flower --conf=dongtai_conf/settings.py worker -l info -Q dongtai-es-save-task $DONGTAI_CONCURRENCY -E --pidfile=
elif [ "$1" = "worker-sca" ]; then
celery -A dongtai_conf worker -l info -Q dongtai-sca-task $DONGTAI_CONCURRENCY -E --pidfile=
celery -A dongtai_conf flower --conf=dongtai_conf/settings.py worker -l info -Q dongtai-sca-task $DONGTAI_CONCURRENCY -E --pidfile=
elif [ "$1" = "worker-other" ]; then
celery -A dongtai_conf worker -l info -X dongtai-periodic-task,dongtai-method-pool-scan,dongtai-replay-vul-scan,dongtai-sca-task $DONGTAI_CONCURRENCY -E --pidfile=
celery -A dongtai_conf flower --conf=dongtai_conf/settings.py worker -l info -X dongtai-periodic-task,dongtai-method-pool-scan,dongtai-replay-vul-scan,dongtai-sca-task $DONGTAI_CONCURRENCY -E --pidfile=
elif [ "$1" = "beat" ]; then
celery -A dongtai_conf beat -l info $DONGTAI_CONCURRENCY --pidfile= --scheduler django_celery_beat.schedulers:DatabaseScheduler
celery -A dongtai_conf flower --conf=dongtai_conf/settings.py beat -l info $DONGTAI_CONCURRENCY --pidfile= --scheduler django_celery_beat.schedulers:DatabaseScheduler
else
# echo "Get the latest vulnerability rules." && python manage.py load_hook_strategy 2> /dev/null
# if [ $? -ne 0 ]; then echo "ERROR: Lost connection to MySQL server !!!" && exit 1 ; else echo "succeed" ;fi
Expand Down

0 comments on commit 235bc20

Please sign in to comment.