mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 02:17:48 +00:00
Reset jobs when tunnel restarts.
This commit is contained in:
@@ -579,6 +579,11 @@ function Tunnel(properties) {
|
|||||||
this.on('stop', function() {
|
this.on('stop', function() {
|
||||||
completed = 0;
|
completed = 0;
|
||||||
success = true;
|
success = true;
|
||||||
|
_.each(all, function(job) {
|
||||||
|
job.attempts = 0;
|
||||||
|
job.failed = false;
|
||||||
|
job.id = job.result = job.url = null;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
this.jobs = {'active': active, 'all': all, 'queue': queue };
|
this.jobs = {'active': active, 'all': all, 'queue': queue };
|
||||||
|
|||||||
Reference in New Issue
Block a user