You can use https://clear.ml/docs/latest/docs/references/sdk/task/#taskget_project_id to get the id of the last updated project with that name
You can also use https://clear.ml/docs/latest/docs/references/sdk/task/#taskget_task since task.clone also accepts a task object