Uploaded image for project: 'JOC - JobScheduler Operations Center'
  1. JOC - JobScheduler Operations Center
  2. JOC-1942

Cycle Instruction executes the workflow twice

    XMLWordPrintable

Details

    • Fix
    • Status: Open (View Workflow)
    • Minor
    • Resolution: Unresolved
    • 2.7.1
    • 2.7.3
    • JOC Cockpit GUI
    • None

    Description

      Current Situation:
      When the services of all JS7 components(Agent,Controller & JOC cockpit) are stopped, the configured cyclic workflow executes the workflow twice when services are restarted.

      Steps to reproduce :

      • Import the attached workflow JSON file or create one consisting of a cyclic instruction of ticking type which is configured to execute the workflow every minute.
      • Stop all the JS7 components services and wait for some time.(e.g. 10min)
      • Start the service of all JS7 components. We observe that the agent will execute the workflow twice without waiting for the interval of 1 min. Which is clear from the below menioned enteries in the order log.
        2024-11-05 13:42:22.752+05:30 [MAIN] [OrderProcessingStarted] id=#2024-11-05#T79312981605-root, Job=job, label=job, pos=0/cycle+end=1730831400000,period=1,i=7,next=1730793480000:0, Agent(url=http://localhost:2073, name=primaryAgent, time=2024-11-05 13:42:21.754+05:30)
        
        2024-11-05 13:42:31.399+05:30 [SUCCESS] [OrderProcessed] id=#2024-11-05#T79312981605-root, Job=job, label=job, pos=0/cycle+end=1730831400000,period=1,i=7,next=1730793480000:0, Agent(time=2024-11-05 13:42:31.386+05:30), returnCode=0
        
        2024-11-05 13:42:31.479+05:30 [MAIN] [OrderProcessingStarted] id=#2024-11-05#T79312981605-root, Job=job, label=job, pos=0/cycle+end=1730831400000,period=1,i=8,next=1730794320000:0, Agent(url=http://localhost:2073, name=primaryAgent, time=2024-11-05 13:42:31.445+05:30)
        
        2024-11-05 13:42:40.652+05:30 [SUCCESS] [OrderProcessed] id=#2024-11-05#T79312981605-root, Job=job, label=job, pos=0/cycle+end=1730831400000,period=1,i=8,next=1730794320000:0, Agent(time=2024-11-05 13:42:40.636+05:30), returnCode=0 

        Desired Behaviour:
        The cycle instruction should not execute the workflow twice upon service restart.

      Attachments

        Activity

          People

            ur Uwe Risse
            aakash-rao Aakash Rao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: