<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% changePriorityActionId = "change_priority" if @job_queue.job_queue_type == JobQueue::QUEUE_TYPE_AGENT titile_name = @job_queue.name + ' (' + @job_queue.agent.name + ')' else titile_name = @job_queue.name end %>
' + titile_name + '') %>" helpUrl="<%=help_link(HELP_URL_CONFIG['agents']['job_queue_entries'])%>" region="center" lazyRender="true" dojoType="helpsys.ext.BufferGrid" baseParameters="{ job_queue_id: '<%= params[:job_queue_id] %>' }" authenticity_token="<%= form_authenticity_token %>" autoExpandColumn="jqeGridJobName" dataColumns="[ { name: 'id'}, { name: 'job_history_id' }, { name: 'job_id' }, { name: 'job_name'}, { name: 'agent_name'}, { name: 'agent_group_name'}, { name: 'run_priority'}, { name: 'server_submitted_time_utc'}, { name: 'sorter'} ]" deletePath="<%= job_queue_job_queue_entry_path(params[:job_queue_id],-1) %>" enableColumnHide="false" gridColumns="[ {dataIndex: 'job_history_id', header: '<%=t "common.run_number" %>', id: 'jqeGridRunHistoryId', locked: false, sortable: false, width: 100, menuDisabled: true}, {dataIndex: 'job_name', header: '<%= t("common.name") %>', id: 'jqeGridJobName', locked: true, sortable: false, width: 200, menuDisabled: true}, {dataIndex: 'agent_name', header: '<%= t("common.agent") %>', id: 'jqeGridAgentName', locked: true, sortable: false, width: 200, menuDisabled: true}, {dataIndex: 'agent_group_name', header: '<%= t("common.agent_group") %>', id: 'jqeGridAgentGroupName', locked: true, sortable: false, width: 200, menuDisabled: true}, {dataIndex: 'run_priority', header: '<%= t(".priority") %>', id: 'jqeGridRunPriority', locked: true, sortable: false, width: 100, menuDisabled: true}, {dataIndex: 'server_submitted_time_utc', header: '<%= t(".submitted_time") %>', id: 'jqeGridSubmitTime', locked: false, sortable: false, width: 200, menuDisabled: true} ]" tbar="{items: [{ cls: '', text: '<%= t_label("agents.index.active_jobs") + " " + @job_queue.get_active_jobs.to_s %>', actsOn: 'none', xtype: 'tbtext', usePopup: false, id: 'tbar_active_jobs' }, '-', { cls: '', text: '<%= t_label("agents.index.max_active_jobs") %> <%= @job_queue.limit_active_jobs ? @job_queue.max_active_jobs.to_s : t("common.nomax_label") %>', actsOn: 'none', xtype: 'tbtext', usePopup: false, id: 'tbar_max_active_jobs' }, '-', { cls: '', text: '<%= t_label("job_queues.index.priority_limit") %> <%= @job_queue.limiter_enabled ? @job_queue.limiter_minimum_priority.to_s : t("common.none")%>', actsOn: 'none', xtype: 'tbtext', usePopup: false, id: 'tbar_max_priority_limit' }, '-', { cls: '', text: '<%= t_label("job_queues.index.max_by_priority") %> <%= @job_queue.limiter_enabled ? @job_queue.limiter_max_active.to_s : t("common.nomax_label")%>', actsOn: 'none', xtype: 'tbtext', usePopup: false, id: 'tbar_max_by_priority' }, '-', { cls: '', text: '<%= t_label("job_queues.index.max_active_per_agent")%> <%= @job_queue.limit_active_per_agent ? @job_queue.max_active_per_agent.to_s : t("common.nomax_label")%>', actsOn: 'none', xtype: 'tbtext', usePopup: false, id: 'tbar_max_active_per_agent' }, '-', { cls: '', text: '<%= t_label("job_queues.index.hold_on_failure") +" "+ @job_queue.hold_on_failure.to_s %>', actsOn: 'none', xtype: 'tbtext', usePopup: false, id: 'tbar_hold_on_failure' }, '->', { cls: '', text: '<%=t(".clear_job_queue")%>', actsOn: 'none', ajaxRequest: true, method: 'POST', confirmText: '<%=t(".clear_job_queue_confirm")%>', actionUrl: '<%= clear_job_queue_job_queue_job_queue_entries_path(params[:job_queue_id]) %>', id: 'tbar_clear_job_queue' }, '-', { cls: '', text: '<%= t_label("common.status") + " " + @job_queue.queue_status.to_s %>', actsOn: 'none', xtype: 'tbtext', usePopup: false, id: 'tbar_queue_status' }, '-', { cls: '', iconCls: '', text: '<%= @job_queue.on_hold ? t("job_queues.index.release_job_queue") : t("job_queues.index.hold_job_queue")%>', actsOn: 'none', ajaxRequest: true, method: 'POST', confirmText: '<%= @job_queue.on_hold ? t("job_queues.index.release_job_queue_confirm") : t("job_queues.index.hold_job_queue_confirm")%>', actionUrl: '#{ @job_queue.on_hold ? toggle_job_queues_agents_path(:hold => false) : toggle_job_queues_agents_path(:hold => true)}', id: 'tbar_hold_release_job_queue' }]}" menuCfg="{items: [{ iconCls: '', text: '<%= t(".change_priority") %>', actsOn: 'many', actionId: '<%= changePriorityActionId %>', customAction: true, usePopup: true, ajaxRequest: true, hideLoadWindow: true },{ iconCls: '', text: '<%= t(".move_job") %>', actsOn: 'many', customAction: true, actionId: 'change_agent', actionUrl: '<%= change_agent_job_queue_job_queue_entry_path(params[:job_queue_id], -1) + "?job_id=\#{job_id}" %>', multipleConfirmText: '<%=t(".load_balance_job_multiple") %>', usePopup: true },{ iconCls: '', text: '<%= t(".run_immediately") %>', actsOn: 'one', actionUrl: '<%= run_immediately_job_queue_job_queue_entry_path(params[:job_queue_id], -1) + "?job_history_id=\#{job_history_id}&job_id=\#{job_id}" %>', customAction: false, actionId: 'run_immediately', ajaxRequest: true, confirmText: '<%= t(".run_immediately_confirm") %>', multipleConfirmText: '<%= t(".run_immediately_confirm") %>', method: 'POST' },'-',{ iconCls: 'icon_jobq_end_job', text: '<%= t(".dequeue_job") %>', menu: { items: [ { iconCls: 'icon-job-history-complete', actsOn: 'many', actionUrl: '<%= job_queue_job_queue_entry_path(params[:job_queue_id], -1, :end_option => JobQueueEntry::END_JOB_COMPLETED, :job_history_id => "\#{job_history_id}") %>', ajaxRequest: true, customAction: true, method: 'DELETE', text: '<%=t "job_history.job_status.completed" %>', actionId: 'end_job', value: <%= JobQueueEntry::END_JOB_COMPLETED %>, confirmText: '<%=t("common.end_job_confirmation", :status => t("job_histories.end_options.completed")) %>', multipleConfirmText: '<%=t("common.end_multiple_job_confirmation", :status => t("job_history.job_status.completed")) %>' }, { iconCls: 'icon-job-history-canceled', actsOn: 'many', actionUrl: '<%= job_queue_job_queue_entry_path(params[:job_queue_id], -1, :end_option => JobQueueEntry::END_JOB_CANCELED, :job_history_id => "\#{job_history_id}") %>', ajaxRequest: true, customAction: true, method: 'DELETE', text: '<%=t "job_histories.end_options.cancelled" %>', actionId: 'end_job', value: <%= JobQueueEntry::END_JOB_CANCELED %>, confirmText: '<%=t("common.end_job_confirmation", :status => t("job_histories.end_options.cancelled")) %>', multipleConfirmText: '<%=t("common.end_multiple_job_confirmation", :status => t("job_histories.end_options.cancelled")) %>', }, { actsOn: 'many', actionUrl: '<%= job_queue_job_queue_entry_path(params[:job_queue_id], -1,:end_option => JobQueueEntry::END_JOB_FAILED, :job_history_id => "\#{job_history_id}") %>', ajaxRequest: true, customAction: true, method: 'DELETE', text: '<%=t "job_histories.end_options.failed" %>', actionId: 'end_job', value: <%= JobQueueEntry::END_JOB_FAILED %>, confirmText: '<%=t("common.end_job_confirmation", :status => t("job_histories.end_options.failed")) %>', multipleConfirmText: '<%=t("common.end_multiple_job_confirmation", :status => t("job_histories.end_options.failed")) %>' } ] } }]}" sortField="{field: 'sorter', direction: 'ASC'}" url="<%= job_queue_job_queue_entries_path(:format => 'json', :job_queue_id => @job_queue.id) %>" style="height:100%;">