Fix(booking-job): Goroutine worker function
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good
All checks were successful
ktm-booking-bot/ktm-booking-bot/pipeline/head This commit looks good
This commit is contained in:
@@ -84,7 +84,7 @@ func (env *Env) BackgroundJobRunner() {
|
||||
creditCardCVV := jobToDo.User.Profile.KtmTrainCreditCardCVV
|
||||
creditCardExpiry := jobToDo.User.Profile.KtmTrainCreditCardExpiry
|
||||
|
||||
func() {
|
||||
go func() {
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
log.Println("Recovering from job panic...")
|
||||
|
||||
Reference in New Issue
Block a user