Closed
Bug 920275
Opened 12 years ago
Closed 12 years ago
Create task runner which can gracefully fail even during exceptions, etc..
Categories
(Firefox OS Graveyard :: Gaia::GithubBot, defect)
Firefox OS Graveyard
Gaia::GithubBot
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: jlal, Assigned: jlal)
References
Details
Attachments
(1 file)
No description provided.
| Assignee | ||
Comment 1•12 years ago
|
||
In short- We have a "parent" which does little else aside from setting a maximum runtime for the "child" (where the task code runs) and the "parent" has a easy to use interface that is resilient to errors.
Rough example:
var task = require('task');
// internally the task operations are done in a different process so we can isolate errors to just that process
task.perform('name-of-task-module', TaskOptions, Job, Project, function(err, result) {
});
Flags: needinfo?(jhford)
| Assignee | ||
Comment 2•12 years ago
|
||
Pointer to Github pull-request
| Assignee | ||
Comment 3•12 years ago
|
||
Comment on attachment 810160 [details]
Pointer to Github pull request: https://github.com/mozilla-b2g-bot/isolated-task-runner/pull/1
Requesting formal review...
This piece handles many different error cases (there is only one success case):
- sync error during startup/run
- async errors (passed and unhandled)
- process unexpectedly closes
- timeouts
- process errors (ipc failures very rare)
Attachment #810160 -
Flags: review?(jhford)
| Assignee | ||
Updated•12 years ago
|
Assignee: nobody → jlal
Updated•12 years ago
|
Attachment #810160 -
Flags: review?(jhford) → review+
| Assignee | ||
Comment 4•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Flags: needinfo?(jhford)
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•