2017-12-05 5 views
0

다음 작업을 내 유목민 서버에 제출하려고합니다. 작업은 기본적으로 로컬 호스트의 파이썬 파일 인 페이로드를 사용합니다. 내가 유목민의 작업 상태를 볼 때유목민 : 파이썬 스크립트를 실행할 수 없습니다.

job "agent-collector-bot" { 
    datacenters = ["staging"] 

    type = "batch" 

    periodic { 
    cron    = "*/10 * * * *" 
    prohibit_overlap = true 
    } 

    group "python-bot" { 
    count = 1 
    task "slack-bot" { 
     driver = "raw_exec" 

     config { 
     command = "python" 
     args = ["local/agent-collector-slackbot.py"] 
     } 

     dispatch_payload { 
     file = "agent-collector-slackbot.py" 
    } 

    } 
    } 
} 

지금은 말한다 :

snomad 상태 에이전트 콜렉터 - 봇/

ID   = agent-collector-bot/periodic-1512465000 
Name   = agent-collector-bot/periodic-1512465000 
Submit Date = 12/05/17 14:40:00 IST 
Type   = batch 
Priority  = 50 
Datacenters = staging 
Status  = pending 
Periodic  = false 
Parameterized = false 

Summary 
Task Group Queued Starting Running Failed Complete Lost 
python-bot 1  0   0  0  0   0 

Placement Failure 
Task Group "python-bot": 
    * Constraint "missing drivers" filtered 5 nodes 

내가 내 유목민 클라이언트 (모든 5) 파이썬가있는 확인 그것에 누군가 .. 나를 도울 수 있습니까?

답변

0

출력에 지정된 드라이버는 파이썬이 아닌 raw_exec입니다.

당신은 당신의 클라이언트 설정 (nomad raw_exec docs)

client { 
    options = { 
    "driver.raw_exec.enable" = "1" 
    } 
} 
을에서 기능을 활성화해야
관련 문제