Agent stuck at "Running" state

I created an AI agent and a custom tool that it should connect to process Excel files. However, when I ask it to parse a file, it gets stuck after using the tool in a "Thinking..." state. If I look at the Logs, there are multiple records stuck in the "Running" state. Even if I cancel the run using the chat button, the execution is still stuck at "Running". I tried deleting the agent conversation thread, but it doesn't change any of the Running processes. How can I force-cancel those processes?