cleanup main worker loo
add duration and params to task logging