Skip to content

Commit

Permalink
fixed massage emsrefresh completed successfully
Browse files Browse the repository at this point in the history
  • Loading branch information
galoiring committed Apr 18, 2023
1 parent 76687fc commit 24a22ba
Showing 1 changed file with 13 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def refresh
else
signal(:abort, "error, no valid option")
end
task_ids = EmsRefresh.queue_refresh_task(targets)
task_ids = queue_refresh_task(targets)
if task_ids.blank?
process_error("Failed to queue refresh", "error")
queue_signal(:error)
Expand All @@ -80,8 +80,20 @@ def refresh

queue_signal(:poll_refresh)
end

end

def queue_refresh_task(target, id = nil)
task_options = {
:action => "EmsRefresh completed successfully ",
:userid => "system"
}

EmsRefresh.queue_refresh_task(target, id, task_options)
end



def load_transitions
self.state ||= 'initialize'

Expand Down

0 comments on commit 24a22ba

Please sign in to comment.