set bs_id after creating task for resque
This commit is contained in:
parent
ce457a3c64
commit
b31cc17f5c
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue