-
Notifications
You must be signed in to change notification settings - Fork 112
Open
Description
Test code:
parser = argparse.ArgumentParser(description="Test task")
parser.add_argument('--days_count', type=int, default=365, required=False)
args = parser.parse_args()
task = Task.init(project_name='test-project', task_name=f'test task {datetime.datetime.now()}')
print(f'Days count: {args.days_count}')
Steps to reproduce:
Run the script locally with the argument --days_count 10.
Wait for the task to complete, then clone it and enqueue it.
Expected behavior:
The cloned task should run with the argument value 10.
Actual behavior:
The cloned task shows 10 as the parameter in the UI.
When executed, it creates another task — but this new one has no parameters set.
The printed value is 365 (the default).
This extra task runs with the default value 365 and does not spawn another task.
It seems that the presence of argparse in the script might be interfering with the expected behavior of parameter propagation.
begins with clearml-agent 2.0.1
QazyBi
Metadata
Metadata
Assignees
Labels
No labels