lab5: исправления по ревью
Concurrent complete no longer deletes the shared verified source; admission is atomic and covers pending presign rows; relay reconciles queued jobs lost to dead-lettering; failed staging is protected until failed_retention; timestamps normalized to UTC; reprocess prefers the durable original and keeps job->attachment lock order; heartbeat errors no longer burn attempts; confirm timeout enforced; pinned images and sanitized health responses.
This commit is contained in:
@@ -15,7 +15,12 @@ import (
|
||||
|
||||
// Enabled reports whether fault injection is explicitly switched on.
|
||||
func Enabled() bool {
|
||||
return os.Getenv("FAULTS_ENABLED") == "1"
|
||||
if os.Getenv("FAULTS_ENABLED") != "1" {
|
||||
return false
|
||||
}
|
||||
|
||||
env := os.Getenv("APP_ENV")
|
||||
return env == "" || env == "dev"
|
||||
}
|
||||
|
||||
// Check exits the process if the action is armed for this job. It must be
|
||||
|
||||
Reference in New Issue
Block a user