Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Error while reserving job ... Timeout occurred - when running in production, not in development #656

Closed
mbedalov opened this Issue · 1 comment

2 participants

@mbedalov

I am using SQLAnywhere for my Adapter, and I have delayed_job working fine in development. However, when switching to production mode, the worker process is never able to reserve a job. After doing some debugging, I've found that the Delayed::Job::reserve() method is failing when it (indirectly) calls the ActiveRecord::ConnectionAdapters::SQLAnywhereAdapter::connect! method.

In the delayed_job.log file, I am seeing the following message:
Error while reserving job: [-832, "Connection error: Timeout occurred while waiting for connection response\n"]: Cannot Establish Connection

I have verified that the connection string that is used between development and production modes is identical, so I am a little at a loss as to what would cause it to timeout in production mode.

I can provide a complete call stack if that would be helpful.

@albus522
Owner

This sounds like an issue with SQLAnywhere and not DJ

@albus522 albus522 closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.