ray.job_config.JobConfig.set_metadata#

JobConfig.set_metadata(key: str, value: str) None[source]#

Add key-value pair to the metadata dictionary.

If the key already exists, the value is overwritten to the new value.

Examples

import ray
from ray.job_config import JobConfig

job_config = JobConfig()
job_config.set_metadata("submitter", "foo")
Parameters:
  • key – The key of the metadata.

  • value – The value of the metadata.