Timeline for admin session username when in cron
Current License: CC BY-SA 3.0
3 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 16, 2014 at 11:47 | comment | added | Jonathan Hussey | If you need to run the same job via admin and via cron and need to determine a difference between the two, I would suggest doing something like set a registry value when the job runs via one method but not the other. Through admin it's probably going to be kicked off via a controller but from cron it will start at a model so you could say set a registry value in the controller and then check if this value exists wherever you need to. | |
Oct 16, 2014 at 11:30 | comment | added | Latheesan |
is there anything I can use to determine if in cron ? like environment variables? etc...
|
|
Oct 16, 2014 at 11:28 | history | answered | Jonathan Hussey | CC BY-SA 3.0 |