I have a flow that is iterating and executing same...
# ask-community
v
I have a flow that is iterating and executing same task over a set of items. One of the task is stuck for 6 hours without anything in the logs, how do I go about debugging the issue?
here are task details
l
check the logs on the server, maybe you had a possible database locked error
v
the last flow always seem to get stuck on last task. eg code `i = [1,2,3,4,5]`:
Copy code
for i in list:
    result = task(i)
print("Done")
the last task with
i=5
never stops and has been running for over an hour.
Hey @Nate I could use some help here whenever you can. thanks
@lucian nothing on the logs of the worker/agent.
n
i can help if you have the actual code for the tasks, but generally this because something happened to interfere with the tracking of the RUNNING->COMPLETED state transition so the api thinks it’s still running
v
@Nate DMing you, thank you