Add process_pending task