diff --git a/config/queue.go b/config/queue.go index e06ebde..983eccc 100644 --- a/config/queue.go +++ b/config/queue.go @@ -25,12 +25,13 @@ func init() { "driver": "database", "connection": "sqlite", "queue": "default", - "concurrent": 1, + "concurrent": 5, }, "redis1": map[string]any{ "driver": "custom", "connection": "default", "queue": "default", + "concurrent": 5, "via": func() (queue.Driver, error) { return redisfacades.Queue("redis1") // The `redis` value is the key of `connections` }, @@ -39,6 +40,7 @@ func init() { "driver": "custom", "connection": "default", "queue": "default", + "concurrent": 5, "via": func() (queue.Driver, error) { return redisfacades.Queue("redis") // The `redis` value is the key of `connections` }, diff --git a/go.mod b/go.mod index e9e92c5..4619494 100644 --- a/go.mod +++ b/go.mod @@ -10,13 +10,13 @@ require ( github.com/goravel/cos v1.17.0 github.com/goravel/example-proto v0.0.1 github.com/goravel/fiber v1.17.0 - github.com/goravel/framework v1.17.0 + github.com/goravel/framework v1.17.1-0.20260209063303-182131ae113a github.com/goravel/gin v1.17.0 github.com/goravel/minio v1.17.0 github.com/goravel/mysql v1.17.0 github.com/goravel/oss v1.17.0 github.com/goravel/postgres v1.17.0 - github.com/goravel/redis v1.17.0 + github.com/goravel/redis v1.17.1-0.20260209063449-3355af77f62f github.com/goravel/s3 v1.17.0 github.com/goravel/sqlite v1.17.0 github.com/goravel/sqlserver v1.17.0 diff --git a/go.sum b/go.sum index 607fa39..427c1c0 100644 --- a/go.sum +++ b/go.sum @@ -279,8 +279,8 @@ github.com/goravel/fiber v1.17.0 h1:XMkuz29hJzaN5mW7dK70oc6FfMDUQeYPbrLyBQoiIA8= github.com/goravel/fiber v1.17.0/go.mod h1:hu2eLwQ6u8ZDFsVWHeV1q0bh7g7PRQg0VZxceVr29Uc= github.com/goravel/file-rotatelogs/v2 v2.4.2 h1:g68AzbePXcm0V2CpUMc9j4qVzcDn7+7aoWSjZ51C0m4= github.com/goravel/file-rotatelogs/v2 v2.4.2/go.mod h1:23VuSW8cBS4ax5cmbV+5AaiLpq25b8UJ96IhbAkdo8I= -github.com/goravel/framework v1.17.0 h1:a02vTMO7ETQE+fkpfndiNgSXucJKA58qB3nzm+moW6A= -github.com/goravel/framework v1.17.0/go.mod h1:ClgXBsig8R2w+xAJT2TVxpAkazGHFtvVmNBolYT94gQ= +github.com/goravel/framework v1.17.1-0.20260209063303-182131ae113a h1:I8JRIL12diRNpRjx2mggtvVeOVmwMXQd9jnaWG8CSQI= +github.com/goravel/framework v1.17.1-0.20260209063303-182131ae113a/go.mod h1:ClgXBsig8R2w+xAJT2TVxpAkazGHFtvVmNBolYT94gQ= github.com/goravel/gin v1.17.0 h1:8H66v9GaYJR9UQ7C0VOef25/r8t/BAH9ZxlvxbHprlc= github.com/goravel/gin v1.17.0/go.mod h1:n0W6V/H+E0mqO+Gh+UMjeBANZe//lpWJ6X7kF3kwxR8= github.com/goravel/minio v1.17.0 h1:WGiPP/KZl/fuDpT9THRM83wjhLCqe1oIAyNVJvVjhS4= @@ -291,8 +291,8 @@ github.com/goravel/oss v1.17.0 h1:Rh9RQF5qDaPZTNDddf0wxj2I1LqjlffLWoXwlgOetyE= github.com/goravel/oss v1.17.0/go.mod h1:gWBBYS6US/TlLbS6cU0dZm4KIshP+MjR9UDyg5oNSmc= github.com/goravel/postgres v1.17.0 h1:xaOZiuS4SkYDwtyTz86cHqihSDYdu4DC9U7vHSjFvto= github.com/goravel/postgres v1.17.0/go.mod h1:JPBxn06MGb0BOpdAUmfgwXU1Q884sQwoFsSyKl1TeXk= -github.com/goravel/redis v1.17.0 h1:GffuVvAmiRE7Bl12sUh+osyp/SF1T8OJRmwLQEIBDsY= -github.com/goravel/redis v1.17.0/go.mod h1:fK/6kpje9tdjU2wfbZvJej/cE/zkb67Dwi9V0FYVZt0= +github.com/goravel/redis v1.17.1-0.20260209063449-3355af77f62f h1:pwkX8aIl6RLxH5CUPEwSG0FSDdVoaS8kYj+m+m6XKz0= +github.com/goravel/redis v1.17.1-0.20260209063449-3355af77f62f/go.mod h1:qz5LA4aa19o1s1sedY2Z9fmPgU41TWXHIFDKyZOClvM= github.com/goravel/s3 v1.17.0 h1:APKylit8XA4U5E3ffslZkihYzUcDeyruWth2P4kbaTY= github.com/goravel/s3 v1.17.0/go.mod h1:vQk0fGs8DICAMFUxStmvt5NYQvszwGM5ayX40ePLAEk= github.com/goravel/sqlite v1.17.0 h1:GK/B9R7lYtQ6BkwyAZkens+/zKMDOKA+P8QDkHsCdg8= diff --git a/main_test.go b/main_test.go index 19459ae..c0f9c23 100644 --- a/main_test.go +++ b/main_test.go @@ -30,14 +30,12 @@ func TestMainTestSuite(t *testing.T) { func (s *MainTestSuite) SetupSuite() {} func (s *MainTestSuite) TearDownTest() { - res := facades.Process().Run("git", "checkout", ".") - s.False(res.Failed()) + // Make sure the app can be built after running the command + s.False(facades.Process().Run("./artisan").Failed()) - res = facades.Process().Run("git", "clean", "-fd") - s.False(res.Failed()) - - res = facades.Process().Run("go", "mod", "tidy") - s.False(res.Failed()) + s.False(facades.Process().Run("git", "checkout", ".").Failed()) + s.False(facades.Process().Run("git", "clean", "-fd").Failed()) + s.False(facades.Process().Run("go", "mod", "tidy").Failed()) } func (s *MainTestSuite) TestMakeCommand() {