set bs_id after creating task for resque

This commit is contained in:
Vokhmin Alexey V 2012-12-25 23:52:52 +04:00
parent ce457a3c64
commit b31cc17f5c
1 changed files with 4 additions and 1 deletions

View File

@ -299,7 +299,10 @@ class BuildList < ActiveRecord::Base
def add_to_queue def add_to_queue
if new_core? if new_core?
# TODO: Investigate: why 2 tasks will be created without checking @state # 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 @status ||= BUILD_PENDING
else else
# XML-RPC params: # XML-RPC params: