DelayedJob: run_at seems to override priority

With DelayedJob, If there's a big backlog of jobs and the workers can't keep up to run the jobs at their specified times, it seems DJ selects the earliest run time over priority.

As you can see from the attached image, a job was locked at a time later than those run_at's but it chose the earlier run_at instead of the higher priority.

I would expect it to do the opposite.


You seem to use Priority backwards. Lower numbers actually have higher priority. So it looks okay to me.

Quote from

By default all jobs are scheduled with priority = 0, which is top priority. You can change this by setting Delayed::Worker.default_priority to something else. Lower numbers have higher priority.

Need Your Help

Wait before ShellExecute is carried out?

delphi delay shellexecute

I have a hopefully quick question: Is it possible to delay execution of ShellExecute a little bit?

Android Studio unexpected top-level exception in libGDX project

android android-studio libgdx

I have a fresh libGDX project, with gives above error message when try to build it.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.