0c461ff841
Build backend images / build content-svc (push) Failing after 53s
Build backend images / build file-svc (push) Failing after 58s
Build backend images / build gateway (push) Failing after 1m1s
Build backend images / build identity-svc (push) Failing after 57s
Build backend images / build notification-svc (push) Failing after 59s
Build backend images / build render-svc (push) Failing after 49s
Build backend images / build studio-svc (push) Failing after 49s
- AepImportService: the global Scene HasQueryFilter(DeletedAt==null) was hiding soft-deleted rows, so the revive never matched and the importer re-inserted → scenes_project_id_key violation. Add .IgnoreQueryFilters() to the load. (apply now revives + returns 200, verified.) - node-agent: ClearAECrashState() deletes AE's SCRPriorState.json before each launch so the 'Crash Repair Options' dialog can't hang a headless scan/render. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
31 lines
837 B
Go
31 lines
837 B
Go
package runner
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
)
|
|
|
|
// ClearAECrashState removes After Effects' session crash-recovery marker
|
|
// (SCRPriorState.json) from every AE prefs version dir. AE checks this file at
|
|
// startup; if it indicates an unclean prior session it shows the blocking
|
|
// "Crash Repair Options" dialog — which would hang a headless afterfx/aerender
|
|
// launch. Deleting it (vs. wiping all prefs) keeps the node's prefs intact.
|
|
//
|
|
// Safe no-op when APPDATA is unset (non-Windows / dev).
|
|
func ClearAECrashState() {
|
|
appData := os.Getenv("APPDATA")
|
|
if appData == "" {
|
|
return
|
|
}
|
|
base := filepath.Join(appData, "Adobe", "After Effects")
|
|
entries, err := os.ReadDir(base)
|
|
if err != nil {
|
|
return
|
|
}
|
|
for _, e := range entries {
|
|
if e.IsDir() {
|
|
_ = os.Remove(filepath.Join(base, e.Name(), "SCRPriorState.json"))
|
|
}
|
|
}
|
|
}
|