From bf3f4123012a5ec2dddb4f5f7450bc9e02a9c918 Mon Sep 17 00:00:00 2001 From: Wedge Date: Sun, 29 Sep 2019 18:20:47 +0300 Subject: [PATCH] Push published cooker build lists to redis --- app/jobs/abf_worker/publish_observer.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/jobs/abf_worker/publish_observer.rb b/app/jobs/abf_worker/publish_observer.rb index 1d629cc60..b176b8d08 100644 --- a/app/jobs/abf_worker/publish_observer.rb +++ b/app/jobs/abf_worker/publish_observer.rb @@ -60,6 +60,12 @@ module AbfWorker if build_list.build_publish? # 'update_column' - when project of build_list has been removed from repository build_list.published || build_list.update_column(:status, BuildList::BUILD_PUBLISHED) + if build_list.save_to_platform.id == 28 + Redis.current.rpush('cooker_published', { + id: build_list.id, + arch: build_list.arch.name + }.to_json) + end elsif build_list.build_publish_into_testing? build_list.published_into_testing || build_list.update_column(:status, BuildList::BUILD_PUBLISHED_INTO_TESTING) end