-
Notifications
You must be signed in to change notification settings - Fork 11
Known Issues
mattmatt edited this page Sep 13, 2010
·
3 revisions
-
SOLVED:
run_later currently doesn’t work well with Phusion Passenger. I’m investigating the issue. It does work when you set RailsSpawnMethod to conservative (the default is smart), but be aware that you lose several of Passenger’s advantages. - When run in development mode (i.e. with class caching disabled), there’s currently a maximum of 10 seconds that the task can run until the thread is killed, because Rails unloads all classes after each request. If that isn’t handled you’ll get weird errors from inside the block, or if the code just waits forever until the worker finishes, it might just block you request infinitely.
- When running in Passenger be aware that you really shouldn’t run long-ish tasks with run_later, since Passenger’s spawner might clean up processes before the worker is finished. Keep it short.