KonaKart Community Forum

Installation / Configuration => Programming of KonaKart => Topic started by: tms on December 10, 2015, 10:32:08 am

Title: Scheduled jobs and invalidated session
Post by: tms on December 10, 2015, 10:32:08 am
Hi.
We have couple of custom schedulers running, some take 1 minute to complete, others might be running as long as 40 - 80 minutes.

One of the long running job (30 + minutes) times out, the session is destroyed and the task fails.

So the question is, what is the best way to keep the session alive while the task is running.
As a workaround I start a heartbeat thread that calls KKAdminIf's checkSession with the jobs session ID every 5 seconds.

Is there some better alternative we should explore ?
Title: Re: Scheduled jobs and invalidated session
Post by: tms on December 10, 2015, 11:28:44 am
Question has been moved to support@konakart.com