(session)
boolean o2session_is_scheduler()
Returns TRUE if session is a scheduler (batch session used to run scheduled jobs), else FALSE
o2session_is_job