mirror of
https://github.com/oarkflow/mq.git
synced 2025-10-08 23:10:05 +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("SMS Sender", "sms-sender", func(taskID string, result mq.Result) {
|
||||
fmt.Printf("SMS workflow completed for task %s: %s\n", taskID, string(result.Payload))
|
||||
fmt.Printf("SMS workflow completed for task %s: %s\n", taskID, string(utils.RemoveRecursiveFromJSON(result.Payload, "html_content")))
|
||||
})
|
||||
|
||||
// Add SMS workflow nodes
|
||||
|
Reference in New Issue
Block a user