Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reindex job stuck at "Queued" #3684

Open
elgib opened this issue Jan 23, 2024 · 9 comments
Open

Reindex job stuck at "Queued" #3684

elgib opened this issue Jan 23, 2024 · 9 comments
Labels
Bug Bug bug bug. Review Tag for PM/Dev Review

Comments

@elgib
Copy link

elgib commented Jan 23, 2024

Describe the bug
After submitting a reindex job, the job remains queued indefinitely with no progress. The issue persists after deleting and resubmitting the job. Similar to #2200 ?

FHIR Version?
R4

Data provider?
CosmosDB

To Reproduce
Steps to reproduce the behavior:

  1. Create search parameter, test on a single resource (success)
  2. Submit reindex job for new parameter (success)
  3. Query reindex job ID - status is stuck at "Queued"

Expected behavior
Reindex job should run

Actual behavior
Reindex job remains "Queued"

@elgib elgib added the Bug Bug bug bug. label Jan 23, 2024
@EXPEkesheth
Copy link
Collaborator

Thanks for reporting the issue @elgib - Are you observing this issue on OSS FHIR service or are you using managed Azure FHIR service (Azure API for FHIR / Azure Health Data Services)?

@elgib
Copy link
Author

elgib commented Jan 24, 2024

@EXPEkesheth we're using the OSS FHIR service.
The issue is reproducible on both our dev and test environments, and with different search parameters (including one that was successfully reindexed a few months ago). Also no obvious errors in the logs.

@EXPEkesheth
Copy link
Collaborator

@elgib , have added in our queue for investigation. Can you please share with us search parameter json used for creating custom search parameter. Will inform once we have more details/ questions.
#114359

@elgib
Copy link
Author

elgib commented Jan 26, 2024

@EXPEkesheth here's an example of one of our custom search parameters.

{ "resourceType": "SearchParameter", "id": "e46bd3c4-f278-4039-841b-892e931596fe", "meta": { "versionId": "1", "lastUpdated": "2023-11-22T12:54:08.333+00:00" }, "url": "http://1beat.care/fhir/search-parameters#patient-care-unit", "name": "patient-care-unit", "status": "draft", "description": "Reference to Organization resource that represents the care unit currently responsible for the patient.", "code": "care-unit", "base": [ "Patient" ], "type": "reference", "expression": "Patient.extension.where(url = 'http://1beat.care/fhir/extensions#patient-care-unit').value", "target": [ "Organization" ] }

Thanks for looking into this. We would appreciate any updates as this is blocking key areas of work for our team. Any short-term recommendations would also be helpful -- for example, should we try rolling back to an earlier version?

@elgib
Copy link
Author

elgib commented Feb 1, 2024

@EXPEkesheth are there any updates on this issue, or timeframes for a fix?

@EXPEkesheth
Copy link
Collaborator

@elgib - As you are using the OSS FHIR service , you would need to explicitly enable Reindex in deployment template (https://github.com/microsoft/fhir-server/blob/main/samples/templates/default-azuredeploy-docker.json#L272). Please ensure this setting is enabled in your instance.
Have you used reindex capability in FHIR server OSS before?

@elgib
Copy link
Author

elgib commented Feb 2, 2024

@EXPEkesheth we have enabled reindex operations and run several reindex jobs successfully in the past. The last successful reindex was late November 2023. We have not made any changes to our setup since then.

@EXPEkesheth
Copy link
Collaborator

@elgib Thanks for the information. We will look into the issue and get back incase of any questions.

@EXPEkesheth
Copy link
Collaborator

@elgib - we recently made improvements in reindex operation. We hope it helps address your issue, can you please execute reindex and let us know the outcome?

@EXPEkesheth EXPEkesheth added the Review Tag for PM/Dev Review label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Bug bug bug. Review Tag for PM/Dev Review
Projects
None yet
Development

No branches or pull requests

2 participants