Skip to content

constraints are not activate with argument #561

@rapidoo

Description

@rapidoo

using Chronos on Ubuntu Ubuntu 12.04.2 LTS

chronos 2.3.4-1.0.183.ubuntu1404 amd64
mesos 0.23.0-1.0.ubuntu1204

When I use constraint without argument, mesos launch the job on the correct server.
But if I add << "arguments": [ "toto"], >> on the same job, constraint are not used, and the job is launch on any slaves.

{
"name": "fred",
"command": "/tmp/toto.sh",
<< "arguments": [ "toto"], >>
"shell": false,
"epsilon": "PT10M",
"executor": "",
"executorFlags": "",
"retries": 2,
"owner": "[email protected]",
"ownerName": "",
"description": "",
"async": false,
"lastError": "",
"cpus": 0.1,
"disk": 256,
"mem": 128,
"disabled": false,
"softError": false,
"dataProcessingJobType": false,
"errorsSinceLastSuccess": 0,
"uris": [],
"environmentVariables": [],
"highPriority": false,
"runAsUser": "root",
"constraints": [
[
"role",
"EQUALS",
"alimentation"
]
],
"schedule": "R/2015-09-17T15:15:00.000Z/PT10S",
"scheduleTimeZone": "Europe/Paris"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions