Opened 15 years ago
Closed 15 years ago
#570 closed enhancement (fixed)
Allow timeout parameter to be set on sh exec python
Reported by: | hodgestar | Owned by: | hodgestar |
---|---|---|---|
Priority: | minor | Milestone: | 0.6 |
Component: | Recipe commands | Version: | 0.6b2 |
Keywords: | Cc: | ||
Operating System: |
Description
It would be nice if we could place a limit on how long slave commands run for. A patch from Walter.
Attachments (1)
Change History (3)
Changed 15 years ago by hodgestar
comment:1 Changed 15 years ago by hodgestar
Comments from Walter:
Allow timeout parameter to be set on sh:exec, python:exec and python:distutils commands, which kills the commands after the given number of seconds. This makes it much easier to deal with runaway processes.
Small fix to killing processes -- kill isn't an attribute of subprocess. It's an attribute of subprocess.Popen.
This is a good solution for #380 -- set limits on the processes running the steps, and you'll eventually get through the build. Other tickets for ignoring a build fill in the rest. See also #380.
Will update http://bitten.edgewall.org/wiki/Documentation/commands.html when this goes in.
comment:2 Changed 15 years ago by wbell
- Resolution set to fixed
- Status changed from new to closed
Fixed by [830]
Walter's patch.