Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion validator/app/src/compute_horde_validator/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ def wrapped(*args, **kwargs):
CONSTANCE_BACKEND = "constance.backends.database.DatabaseBackend"
CONSTANCE_DATABASE_CACHE_BACKEND = "default"
CONSTANCE_CONFIG = {
"SYNC_ORGANIC_JOBS": (False, "SYNC_ORGANIC_JOBS", bool),
"SERVING": (
not env.bool("MIGRATING", default=False),
"Whether this validator is serving jobs and setting weights",
bool,
),
"DYNAMIC_SYNC_ORGANIC_JOBS": (False, "Run the sync implementation of organic jobs", bool),
"DYNAMIC_DUMMY": (0, "Dummy config for the purpose of testing", int),
"DYNAMIC_MANIFEST_SCORE_MULTIPLIER": (
1.05,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ def _execute_organic_job_on_worker(job_request: JsonValue, job_route: JsonValue)
request: OrganicJobRequest = TypeAdapter(OrganicJobRequest).validate_python(job_request)
route: JobRoute = TypeAdapter(JobRoute).validate_python(job_route)

if config.SYNC_ORGANIC_JOBS:
if config.DYNAMIC_SYNC_ORGANIC_JOBS:
execute_organic_job_request_sync(request, route)
else:
async_to_sync(execute_organic_job_request)(request, route)
Expand Down
Loading