mirror of
https://github.com/oarkflow/mq.git
synced 2025-11-03 00:04:01 +08:00
feat: use "GetTags" and "SetTags"
This commit is contained in:
@@ -10,6 +10,7 @@ import (
|
||||
"github.com/oarkflow/json"
|
||||
|
||||
"github.com/oarkflow/mq/dag"
|
||||
"github.com/oarkflow/mq/utils"
|
||||
|
||||
"github.com/oarkflow/jet"
|
||||
|
||||
@@ -19,7 +20,7 @@ import (
|
||||
|
||||
func main() {
|
||||
flow := dag.NewDAG("Email Notification System", "email-notification", func(taskID string, result mq.Result) {
|
||||
fmt.Printf("Email notification workflow completed for task %s: %s\n", taskID, string(result.Payload))
|
||||
fmt.Printf("Email notification workflow completed for task %s: %s\n", taskID, string(utils.RemoveRecursiveFromJSON(result.Payload, "html_content")))
|
||||
})
|
||||
|
||||
// Add workflow nodes
|
||||
|
||||
Reference in New Issue
Block a user