Cronscripts should have top-level exception handler

Bug #605822 reported by Andrew Bennetts
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
High
Stuart Bishop

Bug Description

[This was an idea that came up in a discussion with Robert Collins, I'm filing it as a bug at his request.]

Sometimes cronscripts fail with unhandled exceptions. It would be nice to have these errors reported as OOPSes automatically. So cronscripts should be run with a sys.excepthook (the same way apport intercepts unhandled errors) to do this.

(Perhaps apport itself could be used?)

Related branches

Revision history for this message
Robert Collins (lifeless) wrote :

We'd want to capture into the regular oops system, so apport itself would be a larger change, at first glance.

Revision history for this message
Gary Poster (gary) wrote :

See also bug 607391.

Changed in launchpad-foundations:
status: New → Triaged
importance: Undecided → High
Gary Poster (gary)
Changed in launchpad-foundations:
assignee: nobody → Stuart Bishop (stub)
Stuart Bishop (stub)
tags: added: cron
Revision history for this message
Launchpad QA Bot (lpqabot) wrote : Bug fixed by a commit
Changed in launchpad-foundations:
milestone: none → 10.10
tags: added: qa-needstesting
Changed in launchpad-foundations:
status: Triaged → Fix Committed
Stuart Bishop (stub)
tags: added: qa-untestable
removed: qa-needstesting
Curtis Hovey (sinzui)
Changed in launchpad-foundations:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.