add metadata and noRetry to the resource manager