• Welcome to KonaKart Community Forum. Please login or sign up.
 

Scheduled jobs and invalidated session

Started by tms, December 10, 2015, 10:32:08 am

Previous topic - Next topic

tms

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 ?

tms