mirror of
https://github.com/clearml/clearml
synced 2025-04-06 05:35:32 +00:00
Fix Pipeline controller function support for dict as input argument
This commit is contained in:
parent
94da6af843
commit
de6ea269f8
@ -1143,10 +1143,10 @@ class PipelineController(object):
|
||||
self._task._set_configuration(
|
||||
name=self._config_section, config_type='dictionary',
|
||||
config_text=json.dumps(pipeline_dag, indent=2))
|
||||
params.update(self._pipeline_args)
|
||||
params.update(flatten_dictionary(self._pipeline_args))
|
||||
# noinspection PyProtectedMember
|
||||
self._task._set_parameters(
|
||||
{'{}/{}'.format(self._args_section, k): str(v) for k, v in params.items()},
|
||||
{'{}/{}'.format(self._args_section, k): v for k, v in params.items()},
|
||||
__parameters_descriptions=self._pipeline_args_desc,
|
||||
__update=True,
|
||||
)
|
||||
|
@ -247,7 +247,7 @@ class TriggerScheduler(BaseScheduler):
|
||||
(skip until the next scheduled time period). Default False.
|
||||
:param reuse_task: If True, re-enqueue the same Task (i.e. do not clone it) every time, default False.
|
||||
:param task_parameters: Configuration parameters to the executed Task.
|
||||
for example: {'Args/batch': '12'} Notice: not available when reuse_task=True/
|
||||
for example: {'Args/batch': '12'} Notice: not available when reuse_task=True
|
||||
:param task_overrides: Change task definition.
|
||||
for example {'script.version_num': None, 'script.branch': 'main'} Notice: not available when reuse_task=True
|
||||
:return: True if job is successfully added to the scheduling list
|
||||
|
Loading…
Reference in New Issue
Block a user