Displaying 1 result from an estimated 1 matches for "legacy_master_iif_csv".
2011 Apr 10
0
Delayed_job: how to raise and log exceptions
I have this in a delayed job.
  def perform
    begin
    validation_warnings =
Account.global_import_legacy_accounts(billing_run.legacy_master_iif_csv.path)
    rescue Exception => e
    BackgroundProcessStatus.update(:status => "Process failed. Error:
#{e}.")
    end
  end
I am finding that if an exception ocurrs somewhere in the code which is
being called (i.e. somewhere in Account#global_import_legacy_accounts), the
job just q...