Parse task_ids before calling set_status_tasks.
So errors on the CLI side do not trigger an exception on the server