Replies: 1 comment
-
In the meantime, you can determine this info by checking the call stack to see if it includes a Task class: http://craftcms.stackexchange.com/questions/16814/is-it-possible-to-determine-if-a-script-is-running-within-a-task |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We already have the following awesome methods...
... so your script can easily tell if it's running in a console, or running in the CP.
Would it be possible to add some sort of
isTask()method, so we can easily determine whether the script is running as part of a task?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions