Push published cooker build lists to redis

This commit is contained in:
Wedge 2019-09-29 18:20:47 +03:00
parent dfa9945d8f
commit bf3f412301
1 changed files with 6 additions and 0 deletions

View File

@ -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