# Why does my code always hang at time series #994 during inference?

**URL:** https://forum.crunchdao.com/t/why-does-my-code-always-hang-at-time-series-994-during-inference/1034
**Category:** ADIA Lab
**Created:** [September 17, 2025, 12:15pm UTC](https://forum.crunchdao.com/t/why-does-my-code-always-hang-at-time-series-994-during-inference/1034 "2025-09-17T12:15:35Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![artur](https://forum.crunchdao.com/user_avatar/forum.crunchdao.com/artur/32/774_2.png) [@artur](https://forum.crunchdao.com/u/artur)
#### Post date: [September 17, 2025, 12:15pm UTC](https://forum.crunchdao.com/t/why-does-my-code-always-hang-at-time-series-994-during-inference/1034/1 "2025-09-17T12:15:35Z")

</div>

![TimeProblem](https://forum.crunchdao.com/uploads/default/original/1X/ea7fe472a740b71b1abff5cb66fbaee092adb04b.png)

I am running inference on a batch of time series with a trained model. Everything works fine up to time series #993: each one is processed, classified, and a probability is returned.

But when the loop reaches #994 (task nr. 1212), the code hangs indefinitely. Nothing is printed (I tried `print` statements and even `tqdm`, but no output appears). It just sits there until ~15 hours later, when the job fails with a time limit error.

What’s strange is that locally I can run inference on local sets (e.g. 10,001 training series or 101 test series) without any issues. The models are already trained, so this is inference only — no training involved.

Could there be something special about time series #994 — maybe some pattern or feature that never appeared in the training or test data — that causes the code to freeze?

Has anyone experienced something similar, or do you have advice on how to debug this specific series?

---

<div class="post-metadata">

### Author: ![enzo](https://forum.crunchdao.com/user_avatar/forum.crunchdao.com/enzo/32/15_2.png) [@enzo](https://forum.crunchdao.com/u/enzo)
#### Post date: [September 17, 2025, 1:51pm UTC](https://forum.crunchdao.com/t/why-does-my-code-always-hang-at-time-series-994-during-inference/1034/2 "2025-09-17T13:51:40Z")

</div>

Multiple thing:

1. The logs are limited to the first 1000 lines and last 500 lines. So the “hang” is likely your code printing too much. The progress bars are nefarious for that. I suggest you only print every 1000 datasets that you are indeed running.
2. [You need to infer on 10’000 datasets, not just 100 like you did locally](https://hub.crunchdao.com/competitions/structural-break#:~:text=time%20series%20ID.-,Data%20Size,-The%20training%20set) (overview was updated recently). This is likely the cause of your timeout.
