Skip to content

Commit

Permalink
Default task run method for processor to processor
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell committed Jan 11, 2024
1 parent 6edc932 commit 70a4eaa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion api/app/settings/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -897,7 +897,11 @@
# Setting to allow asynchronous tasks to be run synchronously for testing purposes
# or in a separate thread for self-hosted users
TASK_RUN_METHOD = env.enum(
"TASK_RUN_METHOD", type=TaskRunMethod, default=TaskRunMethod.SEPARATE_THREAD.value
"TASK_RUN_METHOD",
type=TaskRunMethod,
default=TaskRunMethod.TASK_PROCESSOR.value
if env.bool("RUN_BY_PROCESSOR", False)
else TaskRunMethod.SEPARATE_THREAD.value,
)
ENABLE_TASK_PROCESSOR_HEALTH_CHECK = env.bool(
"ENABLE_TASK_PROCESSOR_HEALTH_CHECK", default=False
Expand Down

0 comments on commit 70a4eaa

Please sign in to comment.