Skip to content

Instantly share code, notes, and snippets.

@golodenko
Last active October 2, 2020 15:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save golodenko/a767d59576ff7a4455a7ccdcaf726b84 to your computer and use it in GitHub Desktop.
Save golodenko/a767d59576ff7a4455a7ccdcaf726b84 to your computer and use it in GitHub Desktop.
progress.rb
ids = [229604, 269913, 269997]
ids.each do |id|
complaint = Complaint.find(id)
trace_id = SecureRandom.hex(32)
current_user = User.find(184683)
Services::Workflow.new(complaint, nil, trace_id).complete_prepare_case_by_system!
::Complaints::Statuses::CheckNextActionAtWorker.perform_async(complaint_id: id)
end
puts 'Done'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment