Skip to content

log that job logs are persisted in cleanup instead of normal close path#784

Merged
tlin4194 merged 1 commit intomainfrom
log-job-cleanup-persist
May 4, 2026
Merged

log that job logs are persisted in cleanup instead of normal close path#784
tlin4194 merged 1 commit intomainfrom
log-job-cleanup-persist

Conversation

@tlin4194
Copy link
Copy Markdown
Contributor

@tlin4194 tlin4194 commented May 4, 2026

It's possible for a worker to get killed before a job can persist logs from in-memory to storage backend. When a new worker picks up the pending CloseJob activity, the cleanup path will retry the job Close routine but the logs that were only in-memory before the previous worker shutdown would be lost.

On user side this would look like an empty temporal log despite an alantis plan/validate/apply process completing.

We can't recover the lost logs but this warning just tells us that this is what happened.

@tlin4194
Copy link
Copy Markdown
Contributor Author

tlin4194 commented May 4, 2026

/ptal @lyft/deploys

@tlin4194 tlin4194 enabled auto-merge (squash) May 4, 2026 19:17
@tlin4194 tlin4194 merged commit 9c99a0b into main May 4, 2026
3 checks passed
@tlin4194 tlin4194 deleted the log-job-cleanup-persist branch May 4, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants