Allow for optional taskGraphId in task metadata