mirror of
				https://github.com/endofunky/sidetiq.git
				synced 2022-11-09 13:53:30 -05:00 
			
		
		
		
	Fix Sidetiq dashboard for workers with no schedule.
This commit is contained in:
		
							parent
							
								
									a81ec342f0
								
							
						
					
					
						commit
						64f40634c0
					
				
					 1 changed files with 5 additions and 3 deletions
				
			
		| 
						 | 
				
			
			@ -26,7 +26,12 @@
 | 
			
		|||
            <a href="<%= "#{root_path}sidetiq/#{worker.name}/schedule" %>"><%= worker.name %></a>
 | 
			
		||||
            <td><%= worker.get_sidekiq_options["queue"] %></td>
 | 
			
		||||
            <td>
 | 
			
		||||
              <% @next = schedule.next_occurrence(@time) %>
 | 
			
		||||
              <% if @next.nil? %>
 | 
			
		||||
              No schedule
 | 
			
		||||
              <% else %>
 | 
			
		||||
              <%= relative_time(schedule.next_occurrence(@time)) %>
 | 
			
		||||
              <% end %>
 | 
			
		||||
            </td>
 | 
			
		||||
            <td>
 | 
			
		||||
              <form action="<%= "#{root_path}sidetiq/#{worker.name}/trigger" %>" method="post">
 | 
			
		||||
| 
						 | 
				
			
			@ -39,9 +44,6 @@
 | 
			
		|||
      <% else %>
 | 
			
		||||
      <div class="alert alert-success">No recurring jobs found.</div>
 | 
			
		||||
      <% end %>
 | 
			
		||||
 | 
			
		||||
    </div>
 | 
			
		||||
  </div>
 | 
			
		||||
</div>
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue