31 lines
844 B
Go
31 lines
844 B
Go
// Copyright (c) 2026 Jose Cely <me@jacs.guru>
|
|
// Use of this source code is governed by MIT-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package config
|
|
|
|
import (
|
|
"time"
|
|
|
|
"git.smarteching.com/goffee/core"
|
|
)
|
|
|
|
// Retrieve the main config for the Simple Scheduler
|
|
func GetSchedulerConfig() core.SchedulerConfig {
|
|
//#####################################
|
|
//# Main configuration for ####
|
|
//# the Simple Scheduler (sche) ####
|
|
//#####################################
|
|
|
|
return core.SchedulerConfig{
|
|
// For enabling and disabling the simple scheduler system
|
|
// set to true to enable it, set to false to disable
|
|
EnableScheduler: false,
|
|
|
|
// How often the scheduler polls the database for new tasks
|
|
SchedulerInterval: 10 * time.Second,
|
|
|
|
// Max tasks to process per tick (0 = unlimited)
|
|
SchedulerRateLimit: 5,
|
|
}
|
|
}
|