-
Timeout
Timeout counting starts when a task get picked up, not when added to an executioner.
-
Feature: Timeout
Tasks "expire" and throw a "Timeout" error if config specified on an Executioner or Task level.
-
Better test coverage
92.78 -> 98.55
total coverage & 100% line coverage. -
Cleanup of unreachable code
Removed mostly obsolete safeguards.
-
- Update
eslint
&mocha
, fix lint
-
shortcut to execute generators and generator functions directly.
Previously:
t = new Task(generator); executioner.execute(t);
Shortcut #1:
executioner.execute(generator);
Shortcut #2:
executioner.execute(generator(data));
NOTE: Shortcuts generate tasks with default configuration.
- try/catch will catch yielded error objects or throws whether those are nested in yieldables or not; Errors bubble up and get caught
- BREAKING CHANGE: removed functionality similar to implicit returns where if there is no return statement in a Generator the value of the last yield statement is returned
- fix resolve possible deadlocks that occur from using
yield executioner.execute
from within a task, support for arrays of processes, more tests
- resolve possible deadlocks that occur from using
yield executioner.execute
from within a task
- try/catch block functionality extended to support deep nested yields of isError objects and throws
- try/catch block enclosed yields of error objects do not fail task
- Better error handling / propagation for threads
- More comprehensive tests for error handling
- Retry strategies do not apply to task threads
- Initial release