Goravel v1.16.4 has been released

Fix commands cannot be run concurrently

Suppose there are three commands: Test1, Test2, and Test3, they will print:

func (r *Test1) Handle(ctx console.Context) error {
facades.Log().Info(“app:test[*] start”)
facades.Log().Info(“app:t…


This content originally appeared on DEV Community and was authored by Bowen

Fix commands cannot be run concurrently

Suppose there are three commands: Test1, Test2, and Test3, they will print:


func (r *Test1) Handle(ctx console.Context) error {
  facades.Log().Info("app:test[*] start")
  facades.Log().Info("app:test[*] end")
  return nil
}

Then register them in the Schedule module and execute once per second:


func (kernel *Kernel) Schedule() []schedule.Event {
  return []schedule.Event{
    facades.Schedule().Command("app:test1").EverySecond(),
    facades.Schedule().Command("app:test2").EverySecond(),
    facades.Schedule().Command("app:test3").EverySecond(),
  }
}

Run the Schedule module:

facades.Schedule().Run()

Previously, the three commands were called randomly, the result is unexpected:

Currently, they can be run expectantly:


This content originally appeared on DEV Community and was authored by Bowen


Print Share Comment Cite Upload Translate Updates
APA

Bowen | Sciencx (2025-10-26T04:27:39+00:00) Goravel v1.16.4 has been released. Retrieved from https://www.scien.cx/2025/10/26/goravel-v1-16-4-has-been-released/

MLA
" » Goravel v1.16.4 has been released." Bowen | Sciencx - Sunday October 26, 2025, https://www.scien.cx/2025/10/26/goravel-v1-16-4-has-been-released/
HARVARD
Bowen | Sciencx Sunday October 26, 2025 » Goravel v1.16.4 has been released., viewed ,<https://www.scien.cx/2025/10/26/goravel-v1-16-4-has-been-released/>
VANCOUVER
Bowen | Sciencx - » Goravel v1.16.4 has been released. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2025/10/26/goravel-v1-16-4-has-been-released/
CHICAGO
" » Goravel v1.16.4 has been released." Bowen | Sciencx - Accessed . https://www.scien.cx/2025/10/26/goravel-v1-16-4-has-been-released/
IEEE
" » Goravel v1.16.4 has been released." Bowen | Sciencx [Online]. Available: https://www.scien.cx/2025/10/26/goravel-v1-16-4-has-been-released/. [Accessed: ]
rf:citation
» Goravel v1.16.4 has been released | Bowen | Sciencx | https://www.scien.cx/2025/10/26/goravel-v1-16-4-has-been-released/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.