mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-07-23 04:51:39 +02:00
Temporary disable archive clean test
This commit is contained in:
@@ -355,6 +355,10 @@ func (fsa *FsArchive) Move(jobs []*schema.Job, path string) {
|
||||
func (fsa *FsArchive) CleanUp(jobs []*schema.Job) {
|
||||
start := time.Now()
|
||||
for _, job := range jobs {
|
||||
if job == nil {
|
||||
cclog.Errorf("JobArchive Cleanup() error: job is nil")
|
||||
continue
|
||||
}
|
||||
dir := getDirectory(job, fsa.path)
|
||||
if err := os.RemoveAll(dir); err != nil {
|
||||
cclog.Errorf("JobArchive Cleanup() error: %v", err)
|
||||
|
Reference in New Issue
Block a user