How to find out if a Job is run by schedule?

Is there any environment variable to find out?
So that I can output some diagnose informations, when in normal book the outputs can be simplified.