Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Fixed

- Set `updated_at` when invoking pilot `PeriodicJobUpsert`. [PR #1045](https://github.com/riverqueue/river/pull/1045).

## [0.25.0] - 2025-09-14

⚠️ Internal APIs used for communication between River and River Pro have changed. If using River Pro, make sure to update River and River Pro to latest at the same time to get compatible versions. River v0.25.0 is compatible with River Pro v0.18.0.
Expand Down
2 changes: 2 additions & 0 deletions internal/maintenance/periodic_job_enqueuer.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,7 @@ func (s *PeriodicJobEnqueuer) Start(ctx context.Context) error {
periodicJobUpsertParams.Jobs = append(periodicJobUpsertParams.Jobs, &riverpilot.PeriodicJobUpsertParams{
ID: periodicJob.ID,
NextRunAt: periodicJob.nextRunAt,
UpdatedAt: s.Time.NowUTC(),
})
}

Expand Down Expand Up @@ -405,6 +406,7 @@ func (s *PeriodicJobEnqueuer) Start(ctx context.Context) error {
periodicJobUpsertParams.Jobs = append(periodicJobUpsertParams.Jobs, &riverpilot.PeriodicJobUpsertParams{
ID: periodicJob.ID,
NextRunAt: periodicJob.nextRunAt,
UpdatedAt: s.Time.NowUTC(),
})
}
}
Expand Down
4 changes: 4 additions & 0 deletions internal/maintenance/periodic_job_enqueuer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,10 @@ func TestPeriodicJobEnqueuer(t *testing.T) {
bundle.pilotMock.PeriodicJobUpsertManyMock = func(ctx context.Context, exec riverdriver.Executor, params *riverpilot.PeriodicJobUpsertManyParams) ([]*riverpilot.PeriodicJob, error) {
insertedPeriodicJobIDs = append(insertedPeriodicJobIDs, sliceutil.Map(params.Jobs, func(j *riverpilot.PeriodicJobUpsertParams) string { return j.ID }))
require.Equal(t, bundle.schema, params.Schema)
for _, job := range params.Jobs {
require.NotZero(t, job.NextRunAt)
require.NotZero(t, job.UpdatedAt)
}
return nil, nil
}

Expand Down