- notification 서비스 테스트 추가 - workflow lifecycle 관리 구현 - config, scheduler, workflow 서비스 개선
25 lines
477 B
Go
25 lines
477 B
Go
package notification
|
|
|
|
type TaskNotification struct {
|
|
TaskID string
|
|
Title string
|
|
Status string
|
|
Message string
|
|
}
|
|
|
|
type TaskEventType string
|
|
|
|
const (
|
|
TaskEventRunning TaskEventType = "task.running"
|
|
TaskEventCompleted TaskEventType = "task.completed"
|
|
TaskEventFailed TaskEventType = "task.failed"
|
|
TaskEventCanceled TaskEventType = "task.canceled"
|
|
)
|
|
|
|
type TaskEvent struct {
|
|
Type TaskEventType
|
|
TaskID string
|
|
Title string
|
|
Status string
|
|
Message string
|
|
}
|