触发器管理器
Enterprise Feature
Trigger Manager 应用程序可在 ClearML 企业计划下使用。
ClearML的触发器管理器应用程序允许您定义在预定义事件发生时运行的任务。触发器管理器对于自动化您的工作流程非常有用:每当新数据集被标记为特定标签时触发训练模型,或者在新模型发布时运行管道。
每个触发器都配置为在满足其规格时运行一个ClearML任务。
可以激活触发器的事件包括:
- 对象(任务、数据集或模型)的状态变化
- Object's Tag
- 对于任务触发器,超过指定的指标阈值
该应用程序监控您的工作区以获取触发事件,并在触发激活时启动指定任务的副本。
触发器管理器实例配置
- 导入配置 - 导入一个应用实例配置文件。这将用文件中的值填充实例启动表单,可以在启动应用实例之前进行修改。
- 名称 - 应用实例的名称。这将出现在实例列表中
- Triggers - Events whose occurrence will cause a task to be executed
- Task ID - ID of a ClearML task to clone and enqueue for execution when the trigger is activated.
- Target Project - The project where the task will be cloned to
- Queue - The ClearML Queue to which cloned tasks are enqueued (make sure an agent is assigned to that queue)
- Override Task Hyperparameters - Override parameters in the cloned task. Input the original task's configuration parameter name (including section name e.g. Args/lr). Use UNIX shell-like syntax (splits on whitespace)
- Trigger Type - Triggers can be activated by model, dataset, and/or task activity. Choose which object type to monitor.
- Object selection criteria:
- Match Project - Monitor objects in projects that match this name only
- Match Name - Monitor objects that match this name. Supports both string and Python regex match
- Trigger on Any Tags - Trigger if the object is tagged with ANY of the specified tags (comma separated list)
- Trigger on All Tags - Trigger if the object is tagged with ALL of the specified tags (comma separated list)
- Trigger events for Datasets and Models:
- Trigger on Publish - Activate trigger when a Dataset/Model is published
- Trigger on Archive - Activate trigger when a Dataset/Model is archived
- Trigger events for Tasks:
- Trigger on Status Change - Activate trigger when a task's status changes to the selected state.
- Trigger on scalar - Activate trigger when a task's specific metric crosses a threshold:
- Metric - Title of metric
- Variant - Metric's variant (series)
- Condition - Activate trigger if the value goes over/under the specified threshold
- Threshold - The metric threshold to monitor
- Object selection criteria:
- Add item - Add another trigger
- 轮询频率 - 以分钟为单位的时间段,用于轮询工作区以获取触发事件
- 导出配置 - 将应用程序实例配置导出为JSON文件,稍后可以导入以创建具有相同配置的新实例
仪表盘
Trigger Manager 应用程序实例的仪表板显示其控制台日志。日志显示实例的活动:定期轮询和触发的事件