Let's create per-run timeout for astute task
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Confirmed
|
Medium
|
Fuel Toolbox | ||
Mitaka |
Won't Fix
|
Medium
|
Fuel Toolbox | ||
Newton |
Confirmed
|
Medium
|
Fuel Toolbox |
Bug Description
Today our tasks looks like
parameters:
cmd: some_cmd
retries: 10
interval: 30
timeout: 180
It means that if cmd returns (for example) 1 as exit code 5 seconds after it ran, it will be restarted after 30 secs again. After 180 secs of such retries task will be stopped.
When solving https:/
There is a workaround for this - wrap program in timeout, but it will be much nicer to have such parameter in task itself to ensure that task will be killed and restarted forcibly if it hangs.
tags: | added: area-astute area-python |
Changed in fuel: | |
importance: | Undecided → Medium |
status: | New → Confirmed |