Sha256: f661977c33cbb66544c70e5e03bfcc09b614c13594e94e186d75acfb61111044
Contents?: true
Size: 1.89 KB
Versions: 2
Compression:
Stored size: 1.89 KB
Contents
h3 Dynamic Queues p class="intro" | The list below shows the dynamic queues currently defined. When you start a worker with a dynamic queue key (@key_name), that key is looked up from the list below to determine the actual queues the worker should pull from. Wildcards (*) and negation (leading !) can be used to select the queues the worker should process. There is always a fallback key - @default, which workers will use if the key for that worker is empty. If both the key and the fallback are empty, the worker defaults to processing '*' form action="/dynamicqueue" method="POST" table class="queues table table-hover table-bordered table-striped table-white" thead th Name th Value th Expanded th - @queues.each_with_index do |data, i| tr class="line" td input type="text" id="input-#{{i}}-name" name="queues[][name]" value="#{{data['name']}}" td input type="text" id="input-#{{i}}-value" name="queues[][value]" value="#{{data['value']}}" td class="expanded" = data['expanded'] td a href="#remove" class="remove" Remove a href="#add" class="add" Add input type="submit" value="Save" javascript: function markDirty() { $("input[type=submit]").css({border:"3px orange solid"}); } jQuery(function($) { $("input").live("keypress", markDirty); $("a.add").live("click", function(e) { e.preventDefault(); var $table = $("table.queues"); var $newRow = $table.find("tr.line:first").clone(); $newRow.find("input[type=text]").attr("value", ""); $newRow.find("td.expanded").html("") $newRow.appendTo($table); markDirty(); }); $("a.remove").live("click", function(e) { e.preventDefault(); var $link = $(this); $link.parents("tr").remove(); markDirty(); }); });
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sidekiq-dynamic-queues-0.5.1 | lib/sidekiq/dynamic_queues/server/views/dynamicqueue.slim |
sidekiq-dynamic-queues-0.5.0 | lib/sidekiq/dynamic_queues/server/views/dynamicqueue.slim |