Skip to content

Instantly share code, notes, and snippets.

@gramos
Created May 31, 2010 13:11
Show Gist options
  • Save gramos/419820 to your computer and use it in GitHub Desktop.
Save gramos/419820 to your computer and use it in GitHub Desktop.
['(run_at <= ? AND (locked_at IS NULL OR locked_at < ?) OR locked_by = ?) AND failed_at IS NULL', db_time_now, db_time_now - max_run_time, worker_name]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment