This shoudl actually be a CAS operation to avoid dropping task ids, unless you don't really care.