(record *AgentTaskRecord)
| 715 | } |
| 716 | |
| 717 | func isStableTask(record *AgentTaskRecord) bool { |
| 718 | if record == nil { |
| 719 | return true |
| 720 | } |
| 721 | statuses := nonReusableStableStatuses |
| 722 | if record.Reusable { |
| 723 | statuses = reusableStableStatuses |
| 724 | } |
| 725 | _, ok := statuses[record.Status] |
| 726 | return ok |
| 727 | } |
| 728 | |
| 729 | func (rt *AgentTaskRuntime) enqueueLocked(record *AgentTaskRecord, summary, result string) { |
| 730 | notification := TaskNotification{ |