Added tests for the task client and runner.

This commit is contained in:
mikestefanello 2024-06-21 08:36:51 -04:00
parent b68f9bdf3c
commit 5707343d57
6 changed files with 71 additions and 53 deletions

View file

@ -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)