Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion queue_job/models/queue_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class QueueJob(models.Model):
func_string = fields.Char(string="Task", readonly=True)

state = fields.Selection(STATES, readonly=True, required=True, index=True)
priority = fields.Integer()
priority = fields.Integer(group_operator=False)
exc_name = fields.Char(string="Exception", readonly=True)
exc_message = fields.Char(string="Exception Message", readonly=True, tracking=True)
exc_info = fields.Text(string="Exception Info", readonly=True)
Expand Down
7 changes: 7 additions & 0 deletions queue_job/views/queue_job_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@
/> <!-- pylint: disable=duplicate-xml-fields -->
<field name="date_done" />
<field name="exec_time" />
<field name="priority" optional="hide" />
<field name="exc_name" />
<field name="exc_message" />
<field name="uuid" />
Expand Down Expand Up @@ -210,6 +211,7 @@
<field name="channel" />
<field name="job_function_id" />
<field name="model_name" />
<field name="priority" />
<field name="exc_name" />
<field name="exc_message" />
<field name="exc_info" />
Expand Down Expand Up @@ -282,6 +284,11 @@
string="State"
context="{'group_by': 'state'}"
/>
<filter
name="group_by_priority"
string="Priority"
context="{'group_by': 'priority'}"
/>
<filter
name="group_by_model_name"
string="Model"
Expand Down