class Lato::ApplicationJob

def save_operation_output_file(file_path)

This method can be used to save a file as output of the operation.
def save_operation_output_file(file_path)
  return false unless operation?
  file = File.open(file_path)
  file_name = File.basename(file_path)
  @operation.output_file.attach(
    io: file,
    filename: file_name
  )
end