update to pending_tasks