Uploaded image for project: 'Okapi'
  1. Okapi
  2. OKAPI-751

If multiple _timer interfaces are declared in the ModuleDescriptor only the first one works

    XMLWordPrintable

Details

    • CP: sprint 69
    • 2
    • Core: Platform

    Description

      If multiple _timer interfaces are declared in the ModuleDescriptor only the first one works.

      Steps to reproduce
      1. Provide "_timer" interface in module descriptor.

      {
            "id": "_timer",
            "version": "1.0",
            "interfaceType": "system",
            "handlers": [
              {
                "methods": [
                  "POST"
                ],
                "pathPattern": "/circulation/due-date-scheduled-notices-processing",
                "modulePermissions": [...],
                "unit": "minute",
                "delay": "2"
              }
            ]
          }
      

      2. Provide one more "_timer" interface in module descriptor.

      {
            "id": "_timer",
            "version": "1.0",
            "interfaceType": "system",
            "handlers": [
              {
                "methods": [
                  "POST"
                ],
                "pathPattern": "/circulation/request-scheduled-notices-processing",
                "modulePermissions": [...],
                "unit": "minute",
                "delay": "2"
              }
            ]
          }
      

      Expected result:
      Both declated resources will be called by "_timer".
      Actual result:
      Only the first declared "_timer" works.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                adam Adam Dickmeiss (Inactive)
                opoch Oleh Pochernin
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases