From b31cc17f5cda34aca0714b94a360fab32f3c3351 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Tue, 25 Dec 2012 23:52:52 +0400 Subject: [PATCH] set bs_id after creating task for resque --- app/models/build_list.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/models/build_list.rb b/app/models/build_list.rb index b519684af..26e17b1f0 100644 --- a/app/models/build_list.rb +++ b/app/models/build_list.rb @@ -299,7 +299,10 @@ class BuildList < ActiveRecord::Base def add_to_queue if new_core? # TODO: Investigate: why 2 tasks will be created without checking @state - add_job_to_abf_worker_queue unless @status + unless @status + add_job_to_abf_worker_queue + update_column(:bs_id, id) + end @status ||= BUILD_PENDING else # XML-RPC params: