(session)
boolean o2session_is_job()
Returns TRUE if session is a job-worker (batch session used to execute a job), else FALSE
o2session_is_scheduler