-
Notifications
You must be signed in to change notification settings - Fork 294
task manifest magic #1179
Comments
Task manifest version can only be 1 via snapctl since that is the only place where it checks. There is another issue open about this. Windowed schedules are not supported in task manifests. There is another issue opened about this as well. Justin Guidroz
|
@geauxvirtual, thanks Justin for clarifying it. Probably we can give a better error message if "windowed" schedule is not supported. |
No, the fix is to add proper support for windowed schedule in the task manifestand only return an error on an incorrect schedule. Justin Guidroz
|
Just to link it, that issue is #1162. |
I am unable to reproduce this issue. Task interval is still set to 100ms in the export of the created task. Task file {
"version": 1,
"schedule": {
"type": "simple",
"interval": "100ms"
},
"max-failures": 10,
"workflow": {
"collect": {
"metrics": {
"/intel/mock/foo": {},
"/intel/mock/bar": {},
"/intel/mock/*/baz": {}
},
"config": {
"/intel/mock": {
"name": "root",
"password": "secret"
}
},
"process": [
{
"plugin_name": "passthru",
"process": null,
"publish": [
{
"plugin_name": "mock-file",
"config": {
"file": "/tmp/snap_published_mock_file.log"
}
}
]
}
]
}
}
} Task export "id": "fab9269b-3a21-47ae-bb4a-fa76d641edb3",
"name": "Task-fab9269b-3a21-47ae-bb4a-fa76d641edb3",
"deadline": "5s",
"workflow": {
"collect": {
"metrics": {
"/intel/mock/*/baz": {
"version": 0
},
"/intel/mock/bar": {
"version": 0
},
"/intel/mock/foo": {
"version": 0
}
},
"config": {
"/intel/mock": {
"name": "root",
"password": "secret"
}
},
"process": [
{
"plugin_name": "passthru",
"plugin_version": 0,
"publish": [
{
"plugin_name": "mock-file",
"plugin_version": 0,
"config": {
"file": "/tmp/snap_published_mock_file.log"
},
"target": ""
}
],
"target": ""
}
]
}
},
"schedule": {
"type": "simple",
"interval": "100ms"
},
"creation_timestamp": 1473206175,
"last_run_timestamp": 1473206192,
"hit_count": 153,
"task_state": "Running",
"href": "http://localhost:8181/v1/tasks/fab9269b-3a21-47ae-bb4a-fa76d641edb3",
"Err": null
} |
@geauxvirtual, thanks for checking. Yes, the interval issue is unable to reproduce with the latest Snap. What about other two issues I reported. Are they legit?
|
if change the task manifest version to any number other than 1, it gave the following error:
if change the schedule interval to "100ms", the task created, if you run command "snapctl export taskid" it still shown "5s"
if change the task type to "windowed", it thrown an exception:
I'm not sure what the error suggests.
The text was updated successfully, but these errors were encountered: