-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! docker, core, editoast: add mode single-worker for all infra
- Loading branch information
Showing
1 changed file
with
6 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,10 @@ package fr.sncf.osrd.cli | |
|
||
import com.beust.jcommander.Parameter | ||
import com.beust.jcommander.Parameters | ||
import com.rabbitmq.client.* | ||
import com.rabbitmq.client.AMQP | ||
import com.rabbitmq.client.Channel | ||
import com.rabbitmq.client.ConnectionFactory | ||
import com.rabbitmq.client.DeliverCallback | ||
import fr.sncf.osrd.api.* | ||
import fr.sncf.osrd.api.api_v2.conflicts.ConflictDetectionEndpointV2 | ||
import fr.sncf.osrd.api.api_v2.path_properties.PathPropEndpoint | ||
|
@@ -48,8 +51,8 @@ class WorkerCommand : CliCommand { | |
|
||
init { | ||
ALL_INFRA = !System.getenv("ALL_INFRA").isNullOrEmpty() | ||
WORKER_ID = System.getenv("WORKER_ID") ?: (if (ALL_INFRA) "all_infra_worker" else null) | ||
WORKER_KEY = System.getenv("WORKER_KEY") ?: (if (ALL_INFRA) "all" else null) | ||
WORKER_ID = if (ALL_INFRA) "all_infra_worker" else System.getenv("WORKER_ID") | ||
WORKER_KEY = if (ALL_INFRA) "all" else System.getenv("WORKER_KEY") | ||
WORKER_AMQP_URI = | ||
System.getenv("WORKER_AMQP_URI") ?: "amqp://osrd:[email protected]:5672/%2f" | ||
WORKER_POOL = System.getenv("WORKER_POOL") ?: "core" | ||
|