vtkRenderLargeImage restarting celery on server

I want to take screentshot of renderWindow.
So I am using “vtkRenderLargeImage” for that

I have used offScringRenderig.

renderWindow.SetOffScreenRendering(1)
w2Image = vtk.vtkRenderLargeImage()
w2Image.SetInput(inRen)
w2Image.Update()

It working fine on local system and on server.

But when I used it “celery task manager” it restart celery task without showing any errors.
Just below messages are showing

-------------- celery@eu2sbxmed01 v5.2.3 (dawn-chorus)
--- ***** ----- 
-- ******* ---- Linux-5.15.0-1019-azure-x86_64-with-debian-bullseye-sid 2023-01-10 12:15:16
- *** --- * --- 
- ** ---------- [config]
- ** ---------- .> app:         app:0x************
- ** ---------- .> transport:   redis://localhost:****/1
- ** ---------- .> results:     redis://localhost:****/1
- *** --- * --- .> concurrency: 8 (thread)
-- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
--- ***** ----- 
-------------- [queues]
                .> celery           exchange=celery(direct) key=celery

Anyone have any idea about this?
Please help me to solve this issue