app/models/katello/task_status.rb in katello-4.7.6 vs app/models/katello/task_status.rb in katello-4.8.0.rc1
- old
+ new
@@ -95,18 +95,10 @@
def refresh
self
end
- def merge_pulp_task!(pulp_task)
- PulpTaskStatus.dump_state(pulp_task, self)
- end
-
- def refresh_pulp
- PulpTaskStatus.refresh(self)
- end
-
def human_readable_message
task_template = TaskStatus::TYPES[self.task_type]
return '' if task_template.nil?
if task_template[:user_message]
task_template[:user_message] % self.user.login
@@ -271,19 +263,9 @@
rescue
if self.result.is_a? Hash
self.result[:errors].join(' ').to_s
else
self.result
- end
- end
-
- def self.refresh(ids)
- unless ids.blank?
- uuids = TaskStatus.where(:id => ids).pluck(:uuid)
- ret = Katello.pulp_server.resources.task.poll_all(uuids)
- ret.each do |pulp_task|
- PulpTaskStatus.dump_state(pulp_task, TaskStatus.find_by(:uuid => pulp_task[:task_id]))
- end
end
end
protected