On Thu, Nov 12, 2020 at 09:33:30AM +0800, Cao Xueliang wrote:
May be we should use "LAB" as the env var, so change the scheduler container.
'lab' is in global config, change it?
Thanks, RenWen
Thanks, Xueliang
On Wed, Nov 11, 2020 at 05:55:20PM +0800, Ren Wen wrote:
Signed-off-by: Ren Wen 15991987063@163.com
src/scheduler/constants.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/scheduler/constants.cr b/src/scheduler/constants.cr index 839c241..41f2c75 100644 --- a/src/scheduler/constants.cr +++ b/src/scheduler/constants.cr @@ -10,7 +10,7 @@ JOB_ES_PORT = 9200 JOB_ES_PORT_DEBUG = 9201 JOB_INDEX_TYPE = "jobs/_doc"
-LAB = (ENV.has_key?("LAB") ? ENV["LAB"] : "nolab") +LAB = ENV["lab"]? || "nolab"
SCHED_HOST = (ENV.has_key?("SCHED_HOST") ? ENV["SCHED_HOST"] : "172.17.0.1") SCHED_PORT = (ENV.has_key?("SCHED_PORT") ? ENV["SCHED_PORT"] : 3000).to_i32 -- 2.23.0