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

Show Calendar and Daily Plan should work even if the intervall is not reflected by daily_plan in the database

    XMLWordPrintable

Details

    Description

      Current Situation

      The table daily_plan has records for the given interval from last run of the daily plan job and the given parameter days_offset. The default value for days_offset is 365. That means that every time the job runs the daily plan is created for 365 days

      The show calendar function and the daily plan function only shows records coming from the database. If someone has configured the days_offset parameter e.g. to the value 5 the calendar is only available for the next 5 days.

      Desired Behaviour.

      When a given interval is not reflected by the records in the database the JobScheduler should be asked.

      JobScheduler will be asked when the toDate is after the maxDate (in the database) and the filter does not contain "late=true" and does only contain the state than "planned" (or none).

      When the fromDate is after the maxDate JobScheduler will be asked for the interval fromDate/toDate.

      When the fromDate is before the maxDate JobScheduler will be asked for the interval maxdate+1/toDate.

      Search criteria like job, job_chain, orderId, folders and regular expressions will affect the result.

      The value for days_offset should be set in the order that creates the daily plan. The value is 31 for a new installation.

      The value can be set to a high value, e.g. 365, if the calendar view is to be available even if JobScheduler is not running.
      The value can be set to a low value, e.g. 0, if the calendar view should be available only if JobScheduler is running.

      Attachments

        Issue Links

          Activity

            People

              ztsa0019 Sourabh Agrawal
              ur Uwe Risse
              Uwe Risse Uwe Risse
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: