# Notebooks running forever

**URL:** <https://forums.losant.com/t/notebooks-running-forever/5084>\
**Category:** Help\
**Tags:** notebooks\
**Created:** [June 5, 2023, 6:06am UTC](https://forums.losant.com/t/notebooks-running-forever/5084 "2023-06-05T06:06:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paolo\_Proxy](https://avatars.discourse-cdn.com/v4/letter/p/b5ac83/32.png) [@Paolo\_Proxy](https://forums.losant.com/u/Paolo_Proxy)\
**Post date:** [June 5, 2023, 6:06am UTC](https://forums.losant.com/t/notebooks-running-forever/5084/1 "2023-06-05T06:06:52Z")

</div>

Hi there,  
something really strange happened yesterday, my 2 notebooks are running for ever.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/d/dd29ebe1e09862c303698df4a0da9ba3208dac7e.png)

I have tested them locally with the same input files and there are no infinite loops.  
Is there a way to peek inside what’s going on ?

---

<div class="post-metadata">

**Author:** ![Sebastian\_Turner](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/sebastian_turner/32/4024_2.png) [@Sebastian\_Turner](https://forums.losant.com/u/Sebastian_Turner)\
**Post date:** [June 5, 2023, 2:53pm UTC](https://forums.losant.com/t/notebooks-running-forever/5084/2 "2023-06-05T14:53:23Z")

</div>

Hi @Paolo_Proxy !

Give me a few to take a look at these notebooks and see what I can find. I’ll follow up with you shortly.

---

<div class="post-metadata">

**Author:** ![Sebastian\_Turner](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/sebastian_turner/32/4024_2.png) [@Sebastian\_Turner](https://forums.losant.com/u/Sebastian_Turner)\
**Post date:** [June 5, 2023, 8:02pm UTC](https://forums.losant.com/t/notebooks-running-forever/5084/3 "2023-06-05T20:02:58Z")

</div>

We identified the underlying issue that was causing this Notebook to get stuck in processing and rolled out a fix. Thanks for bringing this to our attention!

However, while looking into this, we found an issue with this specific Notebook - the [output directory template](https://docs.losant.com/notebooks/outputs/#configuring-file-locations) is referencing [Notebook context](https://docs.losant.com/notebooks/context/) objects that aren’t being made available in the associated workflow (i.e. `{{ctx.meterId}}`). If you try to run the Notebook as-is currently, you will see an error that indicates this. This should be easily fixed by updating the workflow. If you have any questions, please let me know.
