Added tests for the task client and runner.
This commit is contained in:
parent
b68f9bdf3c
commit
5707343d57
6 changed files with 71 additions and 53 deletions
|
|
@ -61,7 +61,7 @@ func main() {
|
|||
|
||||
// Start the task runner to execute queued tasks
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
c.Tasks.StartRunner(ctx)
|
||||
go c.Tasks.StartRunner(ctx)
|
||||
|
||||
// Wait for interrupt signal to gracefully shut down the server with a timeout of 10 seconds.
|
||||
quit := make(chan os.Signal, 1)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue