adds #queue_length to be used with #ensure
adds #ensure to push to a queue only if there is no similar job enqueued already