# Question about Active Jobs behavior with Slurm

**URL:** <https://discourse.openondemand.org/t/question-about-active-jobs-behavior-with-slurm/4819>\
**Category:** Get Help\
**Tags:** question\
**Created:** [March 30, 2026, 11:29am UTC](https://discourse.openondemand.org/t/question-about-active-jobs-behavior-with-slurm/4819 "2026-03-30T11:29:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonasarce1](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jonasarce1/32/3351_2.png) [@jonasarce1](https://discourse.openondemand.org/u/jonasarce1)\
**Post date:** [March 30, 2026, 11:29am UTC](https://discourse.openondemand.org/t/question-about-active-jobs-behavior-with-slurm/4819/1 "2026-03-30T11:29:03Z")

</div>

Hello everyone,

I’m trying to understand how the **Active Jobs** app in Open OnDemand works with **Slurm** on our cluster.

From inspecting the code in the OodCore Slurm adapter (specifically here:  
[https://github.com/OSC/ood\_core/blob/5e24c28d1a2d5801335fc2a00e51f31fe2e122e2/lib/ood\_core/job/adapters/slurm.rb#L456-L474](https://github.com/OSC/ood_core/blob/5e24c28d1a2d5801335fc2a00e51f31fe2e122e2/lib/ood_core/job/adapters/slurm.rb#L456-L474)), it appears that Active Jobs internally calls the Slurm `squeue` command (with various formatting options) to retrieve the current list of jobs:

```auto
def get_jobs(id: "", owner: nil, attrs: nil)
  fields = squeue_fields(attrs)
  args = squeue_args(id: id, owner: owner, options: fields.values)
  …
  call("squeue", *args)
end

```

So it seems like Active Jobs simply parses the output of `squeue` and displays that as the active job list.

My question is:

1. **Is it correct that the Active Jobs app always uses `squeue` on Slurm to get jobs?**

2. **Is there any way to have Active Jobs entries stay visible for a period of time after they finish?**

Any suggestions or examples of how other sites handle this would be much appreciated.

Thank you!

---

<div class="post-metadata">

**Author:** ![jeff.ohrstrom](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jeff.ohrstrom/32/136_2.png) [@jeff.ohrstrom](https://discourse.openondemand.org/u/jeff.ohrstrom)\
**Post date:** [March 30, 2026, 1:30pm UTC](https://discourse.openondemand.org/t/question-about-active-jobs-behavior-with-slurm/4819/2 "2026-03-30T13:30:54Z")

</div>

Hi and welcome!

Yes active jobs uses `squeue` and therefore it doesn’t show any historic data. We have some slurm support for historic information but it hasn’t been added to the main application yet.

---

<div class="post-metadata">

**Author:** ![jonasarce1](https://sea1.discourse-cdn.com/flex015/user_avatar/discourse.openondemand.org/jonasarce1/32/3351_2.png) [@jonasarce1](https://discourse.openondemand.org/u/jonasarce1)\
**Post date:** [March 30, 2026, 4:09pm UTC](https://discourse.openondemand.org/t/question-about-active-jobs-behavior-with-slurm/4819/3 "2026-03-30T16:09:41Z")

</div>

Hi Jeff,

Noted, thanks for the quick reply!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/osc/original/2X/b/bae70bd0ed39a3ae769c2108155f4cb3e9da8385.png) [@system](https://discourse.openondemand.org/u/system)\
**Post date:** [September 26, 2026, 4:10pm UTC](https://discourse.openondemand.org/t/question-about-active-jobs-behavior-with-slurm/4819/4 "2026-09-26T16:10:35Z")

</div>

Closed on September 26, 2026, 4:10pm UTC

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
