Tags: Bin-Huang/NodeSpider
Tags
fix the method retry, parameter `current` should implement ITask; fix the method queue, task's special option is not supported but special info; fix the function `startTask`, when execute plan.process there are an error, throw it; import uuid/v1 instead of uuid; delete outdated comments; add warnning about package's stability; update the package to version 0.6.1
Maybe the support of task's special option is a bad idea: because it … …will let developer to save more repeated opts in the queue, such as anonymous callback function, which is a waste to memory and is not easy be stored in redis in the future. Cancel the support of task's special option, but task's special `info` will be retained; delete all of unit test about the support of task's special option. Class Plan has been deleted and replaced by interface IPlan: all object implemented IPlan will been considered as a plan. To count the different types' connections, add member `currentConnections` to the `_STATE`. To flexibly limit the max number of connections, the option `maxTotalConnections` has been deleted, and replaced by `maxConnections`, which can be a number or a object([key: type]: number of connections). Members `type` and `info` no longer belong to the plan's option, but belong to the plan object; Only the task implemented ITask will been passed as a parameter to the plan's process function; rewrite the timer callback and separated into some function; adapt method `plan` to the support of different types; publish the package as version 0.6.0;
PreviousNext