mirror of
https://github.com/cgrates/cgrates.git
synced 2026-02-11 18:16:24 +05:00
[LoderS] If forceDuration is true continue the processing
This commit is contained in:
committed by
Dan Christian Bogos
parent
de811e8362
commit
895c25f4c4
@@ -92,12 +92,12 @@ func (ldrS *LoaderService) V1Load(args *ArgsProcessFolder,
|
||||
if locked, err := ldr.isFolderLocked(); err != nil {
|
||||
return utils.NewErrServerError(err)
|
||||
} else if locked {
|
||||
if args.ForceLock {
|
||||
if err := ldr.unlockFolder(); err != nil {
|
||||
return utils.NewErrServerError(err)
|
||||
}
|
||||
if !args.ForceLock {
|
||||
return errors.New("ANOTHER_LOADER_RUNNING")
|
||||
}
|
||||
if err := ldr.unlockFolder(); err != nil {
|
||||
return utils.NewErrServerError(err)
|
||||
}
|
||||
return errors.New("ANOTHER_LOADER_RUNNING")
|
||||
}
|
||||
//verify If Caching is present in arguments
|
||||
caching := config.CgrConfig().GeneralCfg().DefaultCaching
|
||||
|
||||
Reference in New Issue
Block a user