wq worker does not timeout when there are available results

Fix to issue #350. 

Now the worker does not timeout if there are tasks to be executed, nor if there are results to be sent from previous finished tasks.