This is because certain DBs (like postgres) doesn't guarantee an inherent ordering of queries unless it has been explicitly declared.
Notes
I removed :created_at => :desc, :started_at => :desc from the ordering of executions because these were sorting on the executions columns, but then we do a .find so the sorting was unnecessary.
What
Add explicit ordering of:
job_execution_outputs
on the executions show pageexecutions
on the jobs show pageWhy
This is because certain DBs (like postgres) doesn't guarantee an inherent ordering of queries unless it has been explicitly declared.
Notes
I removed
:created_at => :desc, :started_at => :desc
from the ordering of executions because these were sorting on theexecutions
columns, but then we do a.find
so the sorting was unnecessary.