By Skipper - Mon Feb 19, 2018 9:38 am
- Mon Feb 19, 2018 9:38 am
#813262
Hello,
I have the following problem. I use a intermediate timer event and a scripttask in combination.
See the picture It is a ordering and deploy process for virtual machines. In the scripttaks I proceed steps to search for an IP-address and servername in our central system QIP second step is automatical documentation and third step is a scripttask to document the work in a ticketsystem.
All these scripttasks use php code with curl to do REST api calls. Some of them espacially the first scripttask need 14 seconds to execute.
The cron for intermediate timers is set to every 5 minutes.
The intermediate timer events are all set to 1 minute.
When we proceed one instance of the process everything works fine. If there are three or four instances of the process and all of them go together in the que for the first intermediate timer event the first instance works fine, but the second breaks in an interrupt state. When we reassign the case to a person the task isn't finished and the workload has never been done.
So my first speculation was that the execution time of PHP isn't long enough. So I increase the value to 5 minutes. --> Doesn't helped.
At second I piped the output from the timereventcron.php to a LOG-file. I also added an output to my scripttask with time Stamp and kind of Script.
That have been intresting:
I also tried to increase the PHP execution time by adding this line to my script tasks:
But I'm now at a point where I don't belive that the time is the problem.
But what can be the problem or how can I find it?
Can someone help me?
Kind regards
Timo
I have the following problem. I use a intermediate timer event and a scripttask in combination.
See the picture It is a ordering and deploy process for virtual machines. In the scripttaks I proceed steps to search for an IP-address and servername in our central system QIP second step is automatical documentation and third step is a scripttask to document the work in a ticketsystem.
All these scripttasks use php code with curl to do REST api calls. Some of them espacially the first scripttask need 14 seconds to execute.
The cron for intermediate timers is set to every 5 minutes.
The intermediate timer events are all set to 1 minute.
When we proceed one instance of the process everything works fine. If there are three or four instances of the process and all of them go together in the que for the first intermediate timer event the first instance works fine, but the second breaks in an interrupt state. When we reassign the case to a person the task isn't finished and the workload has never been done.
So my first speculation was that the execution time of PHP isn't long enough. So I increase the value to 5 minutes. --> Doesn't helped.
At second I piped the output from the timereventcron.php to a LOG-file. I also added an output to my scripttask with time Stamp and kind of Script.
That have been intresting:
Code: Select all
Normaly when just one or no case in the que of intermediate timer events it looks like that:
^[[0;35;32mProcessing workspace: workflow^[[0m
^M+------------------------------------------------+
^M| Not exists any record to start a new case, on date "2018-02-19 09:00:03 (UTC +00:00)"
^M+------------------------------------------------+
^M| > Continue the case #98
^M| > Routing the case #98...
^M| - OK
^M|
^M| > Continue the case #100
^M| > Routing the case #100...
QIP Task 09:00:04QIP Task 09:00:18^M| - OK
^M|
^M| > Continue the case #101
^M| > Routing the case #101...
QIP Task 09:00:19Finished 1 workspaces processed
Done!
Code: Select all
So I thought that the scripttask was interrupted by something of processmaker but I don't know why.^[[0;35;32mProcessing workspace: workflow^[[0m
^M+------------------------------------------------+
^M| Not exists any record to start a new case, on date "2018-02-19 09:05:03 (UTC +00:00)"
^M+------------------------------------------------+
^M| > Continue the case #98
^M| > Routing the case #98...
Ticket Task 09:05:02Ticket Task 09:05:04^M| - OK
^M|
^M| > Continue the case #100
^M| > Routing the case #100...
^M| - OK
^M+------------------------------------------------+
Finished 1 workspaces processed
Done!
I also tried to increase the PHP execution time by adding this line to my script tasks:
Code: Select all
I added that because I speculated that the processmaker add alle the scripttasks to one big task together and that takes to much time to execute. This line should reset the timer for the execution.set_time_limit(60);
But I'm now at a point where I don't belive that the time is the problem.
But what can be the problem or how can I find it?
Can someone help me?
Kind regards
Timo