diff --git a/app/jobs/abf_worker/rpm_worker_observer.rb b/app/jobs/abf_worker/rpm_worker_observer.rb index 1ca36b83b..779041f04 100644 --- a/app/jobs/abf_worker/rpm_worker_observer.rb +++ b/app/jobs/abf_worker/rpm_worker_observer.rb @@ -21,8 +21,7 @@ module AbfWorker fill_container_data if status != STARTED unless subject.valid? - subject.build_error(false) - subject.save(validate: false) + subject.update_attribute(:status, BuildList::BUILD_ERROR) return end @@ -80,6 +79,7 @@ module AbfWorker else Redis.current.lpush RESTARTED_BUILD_LISTS, subject.id subject.update_column(:status, BuildList::BUILD_PENDING) + subject.update_column(:builder_id, nil) return true end end @@ -96,4 +96,4 @@ module AbfWorker end end -end \ No newline at end of file +end