Opened 13 years ago

Last modified 7 years ago

#4538 new enhancement

write a python script that runs a subprocess and kills it after a while

Reported by: was Owned by: cwitty
Priority: major Milestone: sage-6.4
Component: misc Keywords:
Cc: gfurnish Merged in:
Authors: Reviewers:
Report Upstream: Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

Create a script sage-walltimekill SAGE_ROOT/local/bin/ that would run a subprocess, wait a certain amount of time, then killing it.

sage-walltimekill 3600 sage

would kill the process it starts after 3600 wall seconds.

This will be useful both for doctesting and the notebook. It's the sort of thing ulimit "should" do, but doesn't.

Change History (8)

comment:1 Changed 13 years ago by was

  • Type changed from defect to enhancement

comment:2 Changed 13 years ago by mabshoff

  • Cc gfurnish added

Gary,

this is very interesting and would help to make -tp more robust.

Cheers,

Michael

comment:3 follow-up: Changed 13 years ago by gfurnish

With #717 can we close this as invalid? Or do you want me to encapsulate the #717 code for some other purpose?

comment:4 in reply to: ↑ 3 Changed 13 years ago by mabshoff

Replying to gfurnish:

With #717 can we close this as invalid? Or do you want me to encapsulate the #717 code for some other purpose?

This could still come in useful for example for the notebook, so I would leave it open.

William: any thoughts here?

Cheers,

Michael

comment:5 Changed 8 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:6 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.1 to sage-6.2

comment:7 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.2 to sage-6.3

comment:8 Changed 7 years ago by vbraun_spam

  • Milestone changed from sage-6.3 to sage-6.4
Note: See TracTickets for help on using tickets.