How to improve AsyncJob time for version updates
# support
a
We recently started an update to the Medplum environment with the goal of reaching version 5.1.9. We have version 4.1.5 and have built the following runbook: 1.
4.1.5
->
4.1.18
2.
4.1.18
->
4.2.6
3.
4.2.6
->
4.3.15
4.
4.3.15
->
4.4.3
5.
4.4.3
->
4.5.2
6.
4.5.2
->
5.0.15
(enforced compatibility gate) 7.
5.0.15
->
5.1.9
The problem is that the AsyncJob from version 4.1.5 to 4.1.18 has been running for more than 13 hours. How can we advance to the next versions more quickly? Is there another way to update? https://cdn.discordapp.com/attachments/1498657633115181170/1498657633673150628/Captura_de_tela_2026-04-28_090414.png?ex=69f1f52f&is=69f0a3af&hm=08ede4753863a851d6d62a08af6d7218f73e82f515bb8b52cb1be8b682f19512&
n
data migration 8 is a relatively larger one as it's reindexing all resources. Do server logs indicate it's still making progress? IIRC it emits a status every 5 minutes. Worth checking your db and server cpu usage too
a
I understand. Will this only happen for v8, or will the other versions also reindex all resources? Since we have over 250 million resources spread across the tables, this timeframe is relatively significant.
n
In our largest env v8 took 44h and the rest combined took ~1h 45m. YMMV since it will depend on the distribution of resources.
a
Can we provide a general breakdown of the resource volume? We have approximately 250 million resources distributed among Patients, Appointments, Service Requests, Observations, etc.
n
sorry, don't have that info offhand. If it's still running, you can get a general since of progress by checking server logs
a
Good afternoon everyone, sorry to ask for help again in this thread, but during the reindexing process I'm encountering these errors shown in the attached image. Is this serious? Do I need to take any action? Apparently the process is running, but when it retrieves a large table, with more than 100 million records, this error always appears in the JSON. @User @User @User https://cdn.discordapp.com/attachments/1498657633115181170/1508918377811284099/image.png?ex=6a17493f&is=6a15f7bf&hm=8bdc868f5a3ea9b59caf7586b004473afe9f57b4e4efd467f137e635f1ed9457&
21 Views