Task is currently running or busy... "hangs" RoboTask execution of my task
Posted: Wed Jan 11, 2023 12:52 am
Hello, I have tried to do the following (RoboTask Pro Trial latest version)
I have Task A which calls B. It calls B like a "function". B is is a "helper" task.
1. Created a Task B to use like a "function".. that is it takes an input global var called $line and then splits this line (a=b) into 2 variables, then processes them by assigning them to 2 global "output" variables.
2. This code works great when is is integrated into the host task A. I mean if you took all the steps and copied them out of this "function" task B into another task e.g. the host task A it would work fine.
3. the host task A runs on a file changed (3 seconds I think) monitor. I changed 2 different files (compiled to them and then robotask detected the changes) and launched the host robotask task A
4. normally this works fine when all steps reside only within Task A
5. but after extracting steps from A into B and calling B instead, I now get the error below and neither of the Task A task instances ever complete.. they are locked in some kind of waiting state
Error:
W: 2023-01-11 3:35:31 AM: Task "A" is currently running or busy...
So what can I do to resolve this and make this 100% reliable? (and fast.. if the task takes minutes to complete that is no good for me)
The steps (About 5 or so) were extracted so that I could replace them in 10+ tasks that I spent hours today creating. So this is the goal here, to be able to have that code in a separate "function" so that if I need to make changes, I only have to do it in one spot.
I have Task A which calls B. It calls B like a "function". B is is a "helper" task.
1. Created a Task B to use like a "function".. that is it takes an input global var called $line and then splits this line (a=b) into 2 variables, then processes them by assigning them to 2 global "output" variables.
2. This code works great when is is integrated into the host task A. I mean if you took all the steps and copied them out of this "function" task B into another task e.g. the host task A it would work fine.
3. the host task A runs on a file changed (3 seconds I think) monitor. I changed 2 different files (compiled to them and then robotask detected the changes) and launched the host robotask task A
4. normally this works fine when all steps reside only within Task A
5. but after extracting steps from A into B and calling B instead, I now get the error below and neither of the Task A task instances ever complete.. they are locked in some kind of waiting state
Error:
W: 2023-01-11 3:35:31 AM: Task "A" is currently running or busy...
So what can I do to resolve this and make this 100% reliable? (and fast.. if the task takes minutes to complete that is no good for me)
The steps (About 5 or so) were extracted so that I could replace them in 10+ tasks that I spent hours today creating. So this is the goal here, to be able to have that code in a separate "function" so that if I need to make changes, I only have to do it in one spot.