Skip to content

Job is started twice from controller, please help #1

@ghost

Description

Hi,

I am running a Rails 2.3.2 app on Phusion Passenger. In a controller, I start a Backgroundjob job. This job is a Rake task that sends an email through Action Mailer. I get the email twice which isn't intended. Looking at the Rails logs, I see the Rails action has only been hit once, but the database queries have been executed twice, with a delay of a few miliseconds . Looking at the Bj log, I see the job has only been executed once.

When I start the exact same rake task on the command line, I only get one email and the logs don't show doubled activity.

That is why I think it has something to do with Phusion Passenger? Maybe the job gets executed once for every instance / thread? The execution is only a few miliseconds apart.

I am not sure how to further debug this issue, or where to look for more info what might be wrong.
Thank you for any help you can give me.

Ben

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions