Skip to content

Commit 0e9b8c5

Browse files
committed
Change job duration to 1 second
1 parent 090afe5 commit 0e9b8c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

meshnet/jobs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ func (s *Server) StartJobs() {
1515
}
1616

1717
if _, err := s.scheduler.NewJob(
18-
gocron.DurationJob(500*time.Millisecond),
18+
gocron.DurationJob(1*time.Second),
1919
gocron.NewTask(JobMonitorFileshareProcess(s)),
2020
gocron.WithName("job monitor fileshare process")); err != nil {
2121
log.Println(internal.WarningPrefix, "job monitor fileshare process schedule error:", err)

0 commit comments

Comments
 (0)