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
fixup! fixup! feat: add crontab package for supporting autostart/stop…
…. This is basically a small wrapper around robfig/cron/v3.
  • Loading branch information
johnstcn committed Apr 4, 2022
commit bd02289910c7dd78725a3c40a3300d5a637359c4
4 changes: 2 additions & 2 deletions coderd/crontab/crontab_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/coder/coder/coderd/cron"
"github.com/coder/coder/coderd/crontab"
"github.com/stretchr/testify/require"
)

Expand Down Expand Up @@ -51,7 +51,7 @@ func Test_Parse(t *testing.T) {
testCase := testCase
t.Run(testCase.name, func(t *testing.T) {
t.Parallel()
actual, err := cron.Parse(testCase.spec)
actual, err := crontab.Parse(testCase.spec)
if testCase.expectedError == "" {
nextTime := actual.Next(testCase.at)
require.NoError(t, err)
Expand Down