Skip to content

Commit d23389e

Browse files
committed
log that job logs are persisted in cleanup instead of normal close path
1 parent ff1a575 commit d23389e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • server/neptune/temporalworker/job

server/neptune/temporalworker/job/store.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@ func (s *StorageBackendJobStore) Remove(jobID string) {
209209
func (s *StorageBackendJobStore) Cleanup(ctx context.Context) error {
210210
failedJobs := []string{}
211211
for jobID, job := range s.InMemoryStore.GetJobs() {
212+
s.logger.WarnContext(ctx, fmt.Sprintf("job: %s was not persisted before shutdown, persisting now during cleanup", jobID))
212213
_, err := s.storageBackend.Write(ctx, jobID, job.Output)
213214

214215
// Track failed jobs, log errors and continue with other jobs

0 commit comments

Comments
 (0)