# Check failed: instance\_ The core worker process is not initialized yet or already shutdown

**URL:** <https://discuss.ray.io/t/check-failed-instance-the-core-worker-process-is-not-initialized-yet-or-already-shutdown/1648>\
**Category:** Ray Core\
**Created:** [April 10, 2021, 8:31pm UTC](https://discuss.ray.io/t/check-failed-instance-the-core-worker-process-is-not-initialized-yet-or-already-shutdown/1648 "2021-04-10T20:31:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthiksurendra](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/karthiksurendra/32/796_2.png) [@karthiksurendra](https://discuss.ray.io/u/karthiksurendra)\
**Post date:** [April 10, 2021, 8:31pm UTC](https://discuss.ray.io/t/check-failed-instance-the-core-worker-process-is-not-initialized-yet-or-already-shutdown/1648/1 "2021-04-10T20:31:38Z")

</div>

I have 2 remote functions defined.  
func1: connect to SQL db to get data  
func2: transform a CSV file

But the functions are independent but take \*\*kwargs as the argument. When I run the script for a date range that has few records (ex: 01.01.2021) the process completes without any issue. But if I run the same script for a weekday (ex: 04.09.2021) I’m getting the error during the run. I tried googling this error but could not find any info.

Core Dump:  
(gdb) core core.22400  
[New LWP 22514]  
[New LWP 22538]  
[New LWP 22545]  
[New LWP 22400]  
[New LWP 22461]  
[New LWP 22498]  
[New LWP 22463]  
[New LWP 22507]  
[New LWP 22459]  
Core was generated by `ray::IDLE '.  
Program terminated with signal 6, Aborted.  
#0 0x00007f867af57207 in ?? ()

Error Message:  
(pid=19735) WARNING: Logging before InitGoogleLogging() is written to STDERR  
(pid=19735) F0410 16:21:41.787758 19735 19860 core\_worker.cc:165] Check failed: instance\_ The core worker process is not initialized yet or already shutdown.  
(pid=19735) \*\*\* Check failure stack trace: \*\*\*  
(pid=19735) @ 0x7ff1c5df210d google::LogMessage::Fail()  
(pid=19735) @ 0x7ff1c5df357c google::LogMessage::SendToLog()  
(pid=19735) @ 0x7ff1c5df1de9 google::LogMessage::Flush()  
(pid=19735) @ 0x7ff1c5df2001 google::LogMessage::~LogMessage()  
(pid=19732) WARNING: Logging before InitGoogleLogging() is written to STDERR  
(pid=19732) F0410 16:21:41.787273 19732 19861 core\_worker.cc:165] Check failed: instance\_ The core worker process is not initialized yet or already shutdown.  
(pid=19732) \*\*\* Check failure stack trace: \*\*\*  
(pid=19732) @ 0x7fdcf283110d google::LogMessage::Fail()  
(pid=19732) @ 0x7fdcf283257c google::LogMessage::SendToLog()  
(pid=19732) @ 0x7fdcf2830de9 google::LogMessage::Flush()  
(pid=19732) @ 0x7fdcf2831001 google::LogMessage::~LogMessage()  
(pid=19733) WARNING: Logging before InitGoogleLogging() is written to STDERR  
(pid=19733) F0410 16:21:41.787277 19733 19867 core\_worker.cc:165] Check failed: instance\_ The core worker process is not initialized yet or already shutdown.  
(pid=19733) \*\*\* Check failure stack trace: \*\*\*  
(pid=19733) @ 0x7ff1e03d810d google::LogMessage::Fail()  
(pid=19733) @ 0x7ff1e03d957c google::LogMessage::SendToLog()  
(pid=19733) @ 0x7ff1e03d7de9 google::LogMessage::Flush()  
(pid=19733) @ 0x7ff1e03d8001 google::LogMessage::~LogMessage()  
(pid=19735) @ 0x7ff1c5da5479 ray::RayLog::~RayLog()  
(pid=19732) @ 0x7fdcf27e4479 ray::RayLog::~RayLog()  
(pid=19733) @ 0x7ff1e038b479 ray::RayLog::~RayLog()

Box:  
Lang: Python  
OS: Linux  
CPU(s): 32  
ray: 1.1.0

Code:

import ray  
ray.init(num\_cpus=4, num\_gpus=1, include\_dashboard=False)  
def run\_ray(\*\*kwargs):  
ray.wait([ray\_data.remote(\*\*kwargs), ray\_shape.remote(\*\*kwargs)])  
ray.shutdown()

@ray.remote  
def ray\_data(\*\*kwargs):  
–function queries SQL db

@ray.remote  
def ray\_shape(\*\*kwargs):  
–function transforms a large CSV file
