rename environment variable to something sensible.
This commit is contained in:
parent
1092ed1118
commit
7d66f922f2
|
@ -48,7 +48,7 @@ if [[ "${SPIFFWORKFLOW_BACKEND_RUN_DATA_SETUP:-}" != "false" ]]; then
|
|||
fi
|
||||
|
||||
export IS_GUNICORN="true"
|
||||
export PROCESS_WAITING_MESSAGES="true"
|
||||
export RUN_BACKGROUND_SCHEDULER="true"
|
||||
|
||||
# THIS MUST BE THE LAST COMMAND!
|
||||
exec poetry run gunicorn ${additional_args} --bind "0.0.0.0:$port" --workers="$workers" --limit-request-line 8192 --timeout 90 --capture-output --access-logfile '-' --log-level debug wsgi:app
|
||||
exec poetry run gunicorn ${additional_args} --bind "0.0.0.0:$port" --preload --workers="$workers" --limit-request-line 8192 --timeout 90 --capture-output --access-logfile '-' --log-level debug wsgi:app
|
||||
|
|
|
@ -28,8 +28,8 @@ export APPLICATION_ROOT="/"
|
|||
if [[ -n "${SPIFFWORKFLOW_BACKEND_LOAD_FIXTURE_DATA:-}" ]]; then
|
||||
./bin/boot_server_in_docker
|
||||
else
|
||||
if [[ -z "${PROCESS_WAITING_MESSAGES:-}" ]]; then
|
||||
export PROCESS_WAITING_MESSAGES="true"
|
||||
if [[ -z "${RUN_BACKGROUND_SCHEDULER:-}" ]]; then
|
||||
export RUN_BACKGROUND_SCHEDULER="true"
|
||||
fi
|
||||
export FLASK_DEBUG=1
|
||||
|
||||
|
|
|
@ -62,7 +62,7 @@ services:
|
|||
- SPIFFWORKFLOW_BACKEND_DATABASE_URI=mysql+mysqlconnector://root:${SPIFFWORKFLOW_BACKEND_MYSQL_ROOT_DATABASE:-my-secret-pw}@localhost:7003/${SPIFFWORKFLOW_BACKEND_DATABASE_NAME:-spiffworkflow_backend_development}
|
||||
- BPMN_SPEC_ABSOLUTE_DIR=/app/process_models
|
||||
- SPIFFWORKFLOW_BACKEND_LOAD_FIXTURE_DATA=${SPIFFWORKFLOW_BACKEND_LOAD_FIXTURE_DATA:-false}
|
||||
- PROCESS_WAITING_MESSAGES=true
|
||||
- RUN_BACKGROUND_SCHEDULER=true
|
||||
ports:
|
||||
- "7000:7000"
|
||||
network_mode: host
|
||||
|
|
|
@ -111,7 +111,7 @@ def create_app() -> flask.app.Flask:
|
|||
|
||||
app.json = MyJSONEncoder(app)
|
||||
|
||||
if app.config["PROCESS_WAITING_MESSAGES"]:
|
||||
if app.config["RUN_BACKGROUND_SCHEDULER"]:
|
||||
start_scheduler(app)
|
||||
|
||||
configure_sentry(app)
|
||||
|
|
|
@ -426,7 +426,7 @@ def process_instance_run(
|
|||
processor.save()
|
||||
ProcessInstanceService.update_task_assignments(processor)
|
||||
|
||||
if not current_app.config["PROCESS_WAITING_MESSAGES"]:
|
||||
if not current_app.config["RUN_BACKGROUND_SCHEDULER"]:
|
||||
MessageService.process_message_instances()
|
||||
|
||||
process_instance_api = ProcessInstanceService.processor_to_process_instance_api(
|
||||
|
|
Loading…
Reference in New Issue