Fix: Ensure job_type never exceeds limit

This commit is contained in:
Dominik Moritz Roth 2023-09-07 17:12:49 +02:00
parent ff5b79feaf
commit e7d6326546

View File

@ -305,6 +305,8 @@ class Slate():
config = copy.deepcopy(orig_config)
runnerConf = self._make_config_for_run(config, r)
wandbC = self.consume(runnerConf, 'wandb', {}, expand=True, delta_desc=runnerConf.pop('delta_desc', 'BASE'))
if 'job_type' in wandbC and len(wandbC['job_type']) > 62:
wandbC['job_type'] = "..."+wandbC['job_type'][-50:]
with wandb.init(
project=project,
config=copy.deepcopy(runnerConf),