Announcement

Collapse
No announcement yet.

Can a script detect when it's being run as a scheduled task?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Kent Multer
    replied
    Thanks!

    Leave a comment:


  • dcarver
    replied
    g.Session:source should be set to "scheduled". Other possible values could be "runtime", "admin", and "api".

    Leave a comment:


  • Can a script detect when it's being run as a scheduled task?

    Is there a global variable, system variable, or some other way for a script to determine whether it's being run in a scheduled task, instead of being called "live" by from merchant.mvc, admin.mvc, or one of the other top-level programs?

    Thanks --
Working...
X