Skip to content

Polling Request from OpenMRS Mediator Not Triggering Automatically #156

@lorerod

Description

@lorerod

Describe the bug
The polling request from the OpenMRS mediator is not behaving as expected.
The polling request didn’t go through automatically, even after waiting 10 minutes.
I had to manually send the request by calling the /mediator/openmrs/sync endpoint.

To Reproduce

  1. Start the docker container using ./startup.sh up-openmrs
  2. Follow the steps in OpenHIM Admin Console guide, installing CHT Mediator and OpenMrs Mediator
  3. Follow the steps in Local setup of CHT Configuration guide
  4. Use the OpenMRS Interop.postman_collection.json with the corresponding dev.json env variables.
  5. Change "key": "CHT_ADMIN_USER" to have value admin instead of medic
  6. Execute the first six calls in the postman collection:
  • Mediator Status
  • OpenMRS Api Status
  • createPatientIdentifierType
  • createDocumentIdentifierType
  • CHT Create Patient
  • Get FHIR Patient
  1. In OpenHIM admin console, check the transactions log. You should have transactions similar to these:

Image

  1. Wait more than 1 minute and confirm that no sync call is registered in the transaction log.

Expected behavior
A polling request from the OpenMRS mediator should trigger automatically within a maximum of 1 minute.

Environment

  • Branch: at the moment of the creation of this ticket, the branch I use is openmrs-mediator
  • Client platform: Docker desktop on MacOS Intel

Additional context
To continue the workflow, I called the OpenMRS sync endpoint manually

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: BugFix something that isn't working as intended

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions