PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 02/05/2018 2:18 PM by  Randy
scheduling flows
 7 Replies
Sort:
You are not authorized to post a reply.
Author Messages
Ragu Raghavan
Private
Private
Veteran Member
(878 points)
Veteran Member
Posts:306


Send Message:

--
02/02/2018 3:04 PM

    I have a need to schedule a IPA flow to run every 15 minutes. Simple flow that checks for some condition and does an AGS call to a GL Screen to change status, Most of the time it will just kick off, find condition not met and end. The sysadmin is concerned that just running it 96 times daily and the WU's created and other overheads will bring the landmark server to its knees. V10. Anybody does this kind of high frequency scheduling? Thanks.

     

    Ragu

    kflores01
    Private
    Private
    Veteran Member
    (118 points)
    Veteran Member
    Posts:42


    Send Message:

    --
    02/02/2018 3:17 PM
    Though I have never done it, due to the large number of workunits it would create, it seems you should be able to use Frequency in Seconds option under Scheduling (Rich Client).
    Todd Mitchell
    Senior IT Specialist
    Gordon Food Service
    Veteran Member
    (172 points)
    Veteran Member
    Posts:74


    Send Message:

    --
    02/02/2018 3:39 PM

    I use an external process to create a separate file and then use a File Channel to kick off.  I am thinking that you could also use a "sleep" timer to loop and re-check --- therefore to only kick off the AGS call when there is something to change -- AND only have 1 work unit running.

     

    Ragu Raghavan
    Private
    Private
    Veteran Member
    (878 points)
    Veteran Member
    Posts:306


    Send Message:

    --
    02/02/2018 3:55 PM
    Thanks Todd. I like the single WU sleep idea. Will explore.
    brox07
    Systems Developer
    Private
    Basic Member
    (22 points)
    Basic Member
    Posts:8


    Send Message:

    --
    02/05/2018 1:47 PM
    I've used the 'sleep' node before and we always seem to have issues with it. We use scheduled processes all the time and they work great. As long as you have an efficient workflow that's the route that I would take. The flow will complete and will no longer be consuming system resources. The one workunit running on a sleep node seems to be very inefficient. However, we have a pretty beefy landmark server and do regular maintenance to clean up old workunit records. So, our applications will differ.
    John Henley
    Private
    Private
    Senior Member
    (9629 points)
    Senior Member
    Posts:3227


    Send Message:

    --
    02/05/2018 2:06 PM
    brox07, in my experience the wait node has issues when you are trying to wait while needing to save the state of the workunit. When the workunit resumes after the wait period, you have to reload variable values, etc. So it works as expected only in very limited circumstances. An alternative--assuming you have access to the SQL command node, which is not available for multi-tenant cloud--is to use SQL wait commands via SQL command node. Not a great solution, but faster and easier than designing around the wait node's limitations.
    Thanks for using the LawsonGuru.com forums!
    John
    Randy
    Systems Administrator
    Rochester Regional Health
    Veteran Member
    (101 points)
    Veteran Member
    Posts:37


    Send Message:

    --
    02/05/2018 2:14 PM
    I have a flow I've run for Years, scheduled every 20 minutes. This check for auto jobs in recovery or wait state, gathers data and emails user to manage it, and emails me a list of them all. Never had an issue. Not sure if I would want a job 'open' all the time as it's taking up a spot in the queue. I have others that run every 15 minutes as well. The key is knowing the normal processing time  of the flow and being aware of the settings (threshold / Continue to run / retries). Had a flow once that opened itself over one that was already processing but having an issue.
    Randy
    Systems Administrator
    Rochester Regional Health
    Veteran Member
    (101 points)
    Veteran Member
    Posts:37


    Send Message:

    --
    02/05/2018 2:18 PM

    BTW - just now debugging another users flow that inconsistently fails. Uses a sleep node and then a system node. When it does fail, it's right after the sleep.

     

    You are not authorized to post a reply.