Edgewall Software
Modify

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)

0001-Allow-timeout-parameter-to-be-set-on-sh-exec-python-.diff (10.7 KB) - added by hodgestar 15 years ago.
Walter's patch.

Download all attachments as: .zip

Change History (3)

Changed 15 years ago by hodgestar

Walter's patch.

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]

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain hodgestar.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.