Add new hourly reset traffic (#3966)

* Add new hourly reset traffic

* fix
This commit is contained in:
Andrew Smirnov
2026-04-19 22:37:34 +03:00
committed by GitHub
parent 7466916e02
commit e986a133f8
17 changed files with 28 additions and 1 deletions

View File

@@ -327,6 +327,8 @@ func (s *Server) startTask() {
s.cron.AddJob("@daily", job.NewClearLogsJob())
// Inbound traffic reset jobs
// Run every hour
s.cron.AddJob("@hourly", job.NewPeriodicTrafficResetJob("hourly"))
// Run once a day, midnight
s.cron.AddJob("@daily", job.NewPeriodicTrafficResetJob("daily"))
// Run once a week, midnight between Sat/Sun