Skip to content

feat: add crontab package for supporting autostart/stop. #844

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Apr 4, 2022
Prev Previous commit
Next Next commit
fix: return struct instead of interface
  • Loading branch information
johnstcn committed Apr 4, 2022
commit 45253a9f68c9b5a2ae1f69437bcb6740aea7f7eb
2 changes: 1 addition & 1 deletion coderd/crontab/crontab.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func (s cronSchedule) Next(t time.Time) time.Time {
return s.sched.Next(t)
}

func Parse(spec string) (WeeklySchedule, error) {
func Parse(spec string) (*cronSchedule, error) {
specSched, err := defaultParser.Parse(spec)
if err != nil {
return nil, xerrors.Errorf("parse schedule: %w", err)
Expand Down