# How do i get the slurm job id from a workflow?

**URL:** <https://cylc.discourse.group/t/how-do-i-get-the-slurm-job-id-from-a-workflow/714>\
**Category:** Cylc Support\
**Created:** [August 4, 2023, 5:02am UTC](https://cylc.discourse.group/t/how-do-i-get-the-slurm-job-id-from-a-workflow/714 "2023-08-04T05:02:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonnyhtw](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/jonnyhtw/32/232_2.png) [@jonnyhtw](https://cylc.discourse.group/u/jonnyhtw)\
**Post date:** [August 4, 2023, 5:02am UTC](https://cylc.discourse.group/t/how-do-i-get-the-slurm-job-id-from-a-workflow/714/1 "2023-08-04T05:02:33Z")

</div>

hi,

how do i get the slurm job id from a cylc workflow so i can do some memory profiling on it? it doesn’t appear to be in the `job.out`?

thanks

---

<div class="post-metadata">

**Author:** ![hilary.j.oliver](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/hilary.j.oliver/32/4_2.png) [@hilary.j.oliver](https://cylc.discourse.group/u/hilary.j.oliver)\
**Post date:** [August 4, 2023, 5:56am UTC](https://cylc.discourse.group/t/how-do-i-get-the-slurm-job-id-from-a-workflow/714/2 "2023-08-04T05:56:22Z")

</div>

The `job.out` file captures the stdout stream from the job.

The `job.activity` file contains scheduler activity related to the job, such as job submission errors and (for successful job submission) the Job ID - take a look at that file!

---

<div class="post-metadata">

**Author:** ![MetRonnie](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/metronnie/32/125_2.png) [@MetRonnie](https://cylc.discourse.group/u/MetRonnie)\
**Post date:** [August 4, 2023, 5:34pm UTC](https://cylc.discourse.group/t/how-do-i-get-the-slurm-job-id-from-a-workflow/714/3 "2023-08-04T17:34:29Z")

</div>

Also `job.status` and the GUI!

 ![image](https://global.discourse-cdn.com/free1/uploads/cylc1/original/1X/8161d2640b9349163f31ae81078e0e1a4102b071.png)

---

<div class="post-metadata">

**Author:** ![jonnyhtw](https://yyz2.discourse-cdn.com/free1/user_avatar/cylc.discourse.group/jonnyhtw/32/232_2.png) [@jonnyhtw](https://cylc.discourse.group/u/jonnyhtw)\
**Post date:** [August 8, 2023, 12:16am UTC](https://cylc.discourse.group/t/how-do-i-get-the-slurm-job-id-from-a-workflow/714/4 "2023-08-08T00:16:28Z")

</div>

thanks a lot @MetRonnie @hilary.j.oliver 🙂
