2014-02-24 20:36:51 +00:00
|
|
|
class CleanRpmBuildNodeJob
|
2016-05-28 19:21:02 +01:00
|
|
|
include Sidekiq::Worker
|
2014-02-24 20:36:51 +00:00
|
|
|
|
2016-06-11 17:03:15 +01:00
|
|
|
sidekiq_options :queue => :low
|
|
|
|
|
2016-05-28 19:21:02 +01:00
|
|
|
def perform
|
2014-02-24 20:36:51 +00:00
|
|
|
RpmBuildNode.all.each do |n|
|
|
|
|
n.delete unless n.user_id
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|