mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-10-21 11:21:18 +00:00
The panel scheduler runs WithSeconds(), whose parser rejects a standard five-field crontab such as "30 8 * * *". An admin who typed one into the Telegram/Discord notify time or the LDAP sync schedule saved it without error, AddJob then failed at startup, and the job silently never ran. Admin-typed schedules now go through internal/util/cronspec, which takes an optional seconds column plus the @descriptors and hands the scheduler a parsed cron.Schedule. CheckValid rejects an unparseable schedule on save, and a stored legacy value falls back to the job's default instead of dropping the job. |
||
|---|---|---|
| .. | ||
| check_valid_test.go | ||
| entity.go | ||
| path_validation_test.go | ||