mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: Add built-in PostgreSQL for simple production setup (#2345)
* feat: Add built-in PostgreSQL for simple production setup Fixes #2321. * Use fork of embedded-postgres for cache path
This commit is contained in:
@@ -967,10 +967,6 @@ func (p *Server) failActiveJob(failedJob *proto.FailedJob) {
|
||||
p.jobMutex.Lock()
|
||||
defer p.jobMutex.Unlock()
|
||||
if !p.isRunningJob() {
|
||||
if p.isClosed() {
|
||||
return
|
||||
}
|
||||
p.opts.Logger.Info(context.Background(), "skipping job fail; none running", slog.F("error_message", failedJob.Error))
|
||||
return
|
||||
}
|
||||
if p.jobFailed.Load() {
|
||||
|
||||
Reference in New Issue
Block a user