Faulty tasks automatically retried later rather than hold the taks queue.

This commit is contained in:
Zaid Abdulla committed 2013-11-03 00:54:22 +03:00
1 parent 2e4a524d90
commit e77cdd10c8
3 files changed
+10 -13

No files matched your search

+1 -1
View File
@@ -239,7 +239,7 @@ else
response.end('405 Method Not Allowed')
else if action is '/retry'
if request.method == 'POST'
db.tasksCollection.update({_id : taskId}, {$unset : {fault : 1}, $inc : {retries : 1}, '$set' : {timestamp : new Date()}}, (err, count) ->
db.tasksCollection.update({_id : taskId}, {$unset : {fault : 1}, $set : {timestamp : new Date()}}, (err, count) ->
# TODO need to invalidate presets hash for the device
response.writeHead(200)
response.end()