update task in api and refresh for all jobs