- Jun 6, 2020
- 11,559
- 4,422
Hello all,
I am coding my first jserver, where i have a background worker pooling data every 20 minutes.
It is running on a Linux Synology server.
This morning i noticed it stopped pooling the data and went to check the nohup.out log and noticed it stopped at midnight.
From the log attached i deduce the linux server put the jServer task to sleep and woke it up when i requested a page this morning, but the background worker is not running anymore.
My two questions are:
a) Is there a way to detect the server waking the task and rerun the background worker?
b) If not, can i force the server task never to go to sleep?
B4X:
I am coding my first jserver, where i have a background worker pooling data every 20 minutes.
It is running on a Linux Synology server.
This morning i noticed it stopped pooling the data and went to check the nohup.out log and noticed it stopped at midnight.
From the log attached i deduce the linux server put the jServer task to sleep and woke it up when i requested a page this morning, but the background worker is not running anymore.
My two questions are:
a) Is there a way to detect the server waking the task and rerun the background worker?
b) If not, can i force the server task never to go to sleep?
B4X:
کد:
محتوای بلوک کدها در دسترس شما نیست. برای مشاهده بلوک کدها، وارد انجمن شوید یاثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید
برای دیدن لینک ها باید ثبت نام کنید