diff --git a/docs/clearml_sdk/task_sdk.md b/docs/clearml_sdk/task_sdk.md index 442cdcc3..58a931b8 100644 --- a/docs/clearml_sdk/task_sdk.md +++ b/docs/clearml_sdk/task_sdk.md @@ -199,7 +199,7 @@ Pass one of the following in the `continue_last_task` parameter: You can also continue a task previously executed in offline mode, using `Task.import_offline_session()`. See [Offline Mode](#offline-mode). -### Empty Task Creation +### Task Creation from Existing Code or Container A task can also be created without the need to execute the code itself. Unlike the runtime detections, all the environment and configuration details need to be provided explicitly. @@ -221,6 +221,9 @@ task = Task.create( ) ``` +If the code does not contain a `Task.init()` call, pass `add_task_init_call=True`, and the code will be patched when +executed by a ClearML Agent. + :::info Argument Specification When specifying arguments in `argparse_args`, use the full argument name (e.g., `--lr`) instead of the short form (e.g., `-l`). ClearML works by connecting with the argument parser and replacing the associated variable name, not the