Created Background Jobs rake task to process jobs:
Background Jobs index page shows that Job ID: 335 has a status of "pending" and is "Queued":
After the rake task process_jobs is run, Job ID: 335 is processed and now has a status of "complete" and Results contains the "Download" url for the CSV file:
When a background job contains an error, such as an SQL syntax error in Job ID: 964, the queued job status is set to "error", and the user error message is displayed:
When a background job contains an error, such as an SQL syntax error in Job ID: 964, the queued job status is set to "error", and the user error message is displayed: