File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Task_Queue
22
3- [ ![ CircleCI ] ( https://circleci .com/gh/ nozo-moto/taskqueue. svg?style=svg )] ( https://circleci .com/gh/ nozo-moto/taskqueue )
3+ [ ![ build ] ( https://github .com/nozo-moto/taskqueue/actions/workflows/go.yml/badge. svg )] ( https://github .com/nozo-moto/taskqueue/actions/workflows/go.yml )
44
55This is task queue worker. I create referencing TaskQueue of GCP.
66You can set task's interval time, and retry count.
@@ -23,7 +23,7 @@ go taskQueue.Run()
2323err := taskQueue.Add (
2424 func (args ...interface {}) error {
2525 // Get Agument
26- index , ok := args[0 ].([]interface {})[0 ].(int )
26+ index , ok := args[0 ].([]interface {})[0 ].(int )
2727 if !ok {
2828 panic (" error assation not good" )
2929 }
@@ -32,7 +32,7 @@ err := taskQueue.Add(
3232 return nil
3333 },
3434 3 , // Retry Count
35- index, // Argument
35+ index, // Argument
3636)
3737
3838```
You can’t perform that action at this time.
0 commit comments