forked from rails/solid_queue
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request rails#33 from basecamp/solid-queue-features
Order scheduled jobs by scheduled date first and warn about delayed ones
- Loading branch information
Showing
3 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,7 @@ | ||
<td><%= link_to job.queue_name, application_queue_path(@application, job.queue) %></td> | ||
<td><%= bidirectional_time_distance_in_words_with_title(job.scheduled_at) %></td> | ||
<td> | ||
<%= bidirectional_time_distance_in_words_with_title(job.scheduled_at) %> | ||
<% if job.scheduled_at.before? 1.minute.ago %> | ||
<div class="is-danger tag ml-4">delayed</div> | ||
<% end %> | ||
</td> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters