Get all the jobs in ActiveJobs whatever their status is

Good afternoon.
I’m working with OOD 3.1.7 version and I want to replicate the page ActiveJobs but i wanna show all the jobs whatever their status is.
I created my own controller and I created the new route in routes.rb which points to the index of my controller and the html is shown correctly.
In my index.html.erb page i copied the active jobs index’s page and it works fine.
I noticed that Completed jobs appear temporarily in the table which showes active jobs and then disappear.
I took a look into ActiveJobs’ helper and models and there’s no filter applied on the status of the jobs, before the request is sent to the scheduler, and there’s no filter in js files which removes jobs from the datatable based on their status.

There’s a way I can retrieve all the jobs? I saw an old topic about this but maybe things are changed after 2 years.

That’s the topic i’m talking about
https://discourse.openondemand.org/t/view-past-jobs/2444/3

Thanks in advance for the response

Hi, welcome and sorry for the delay.

We don’t currently have support for historic jobs. If you’re on Slurm it works this way - we issue squeue commands, not sacct. This means that jobs returned from squeue will appear here which includes jobs that have just finished.

Which is to say - we don’t have support for pulling data from sacct yet. If you’re on another scheduler type this issue is pretty much the same. The schedulers only return what has just finished, not the complete list of all jobs.