Avoid bug with unlinking model from Manual Task
Approaches
There are several approaches you can adopt to avoid the bug when you can't unlink a model from a Manual Task:
Use the created Manual Task as a template and never link it to a model pipeline:
- Create a Manual Task of the required design.
- Label it as a template: use tags or add some indication to the task name.
- Never link it to a pipeline or automation Business Process (BP).
- To start training, make an independent copy of the Manual task and link an appropriate model pipeline and automation BP.
- Never reuse the copied task for another model pipeline. Instead, create a clean copy from the template.
If you already created and linked a Manual Task, make a deep copy several times to be sure you unlinked it.
Best practices
The best practices to detect such bugs are as follows:
When you change a linked hyper model configuration, double-check if the configuration is saved.
- Go to the Run tab > Advanced options > Automation tab.
- Click Configure (arrow near the Edit button) to make necessary changes. Then, click OK > save the Manual task.
- Go to the Run tab > Advanced options > Automation tab once again and check whether the configuration changes are saved.
When you apply automation to a Manual Task and run an extraction, check if the model's EGID (model ID) is correct. If needed, go to the WFML_Job_data Data Store, check the model list, and compare the used EGID with those in the table.
Enable logging for the Extract Information step to check if the right model is used. For that, add the following code to the step:
<script> log.warn("model-name:" + item.wrappedObject.run.automationInfo.modelType); log.warn("model-version:" + item.wrappedObject.run.automationInfo.modelVersion); log.warn("egid:" + item.wrappedObject.run.automationInfo.experimentGroup); log.warn("experiment-id:" + item.wrappedObject.run.automationInfo.experimentId); </script>