Merge branch 'release/0.4.0'
new class Queue is implemented, task domains are saved in db using insertBulk()
tasks are added to Queue object first, then Queue is saved
implementation of new method setEncodedData() in Runner
API-372 New Feature - Tasker - started time - NextDating
new property for model domain Task: started_time
change implemented in factory and runner
API-372 New Feature - Tasker - started time - NextDating
started_time property is set in Injector run() method
Consts class expanded with new constants and methods
new property for model domain Task: started_time
change implemented in factory and runner
started_time property is set in Injector run() method
Consts class expanded with new constants and methods
Task Model Domain class has new property: identifier, with getter and setter
reserving and fetching tasks in Manager.php wrapped in transaction
new instance of task mapper removed from _runTasks() method of Manager.php, instead used the one created in constructor
Manager.php, _runTasks() method: usleep implemented using option parameter "delay", if it is set
tasker run() method uses option parameter "fetch_limit" if it is set, if not - uses default fetch limit
Manager.php will throw exception is option parameter "php_processes_max" is set and limit has been reached, no tasks will be reserved nor executed in this case
Injector.php sets identifier explicitly to empty string
new properties: delay and maxNoOfPhpProcesses, with setters
added connection close before fork in Manager; moved transaction from Manager to Runner; refactored Runner
Runner.php now executes task without transaction, so task itself can execute transaction
TaskAbstract has new property: createdTs and new methods addDelay() and getCreatedTs()
Queue sets property createdTs of task to value returned from TaskAbstract method getCreatedTs()
new Task mapper methods that reset tasks in pending status with identifier and working tasks that are older than specified time
new Cleaner class that implements new mapper methods
Manager implements Cleaner class for reseting tasks that are stucked