Correct behavior of tasks missing task_id
Add create_artifact helper