 					return i if obj._id is id
 				return -1
 			dirtyqueue = 0
+			forceQueuereSync = false
 			async.forever((next)->
 				unless r.ready
 					setImmediate -> next()

									item._status = "tosend"
									item._lastchange = ~~((new Date).getTime() / 1000)
						console.log "Reenqued", reenques,"jobs"
					setImmediate -> next()
			,(err)->
				#it will never stop

						if not found
							if findplace(jobId) isnt -1 # update the job
								currentjob = findinque(jobId)
								console.log jobId,currentjob._takenby, "->",host
								if currentjob._status is "onqueue" then forceQueuereSync = true
								currentjob._takenby = host
								currentjob._status = "working"
								currentjob._lastchange = ~~((new Date).getTime() / 1000)
