coldfusion - How to detect if a script is running via a scheduled task -



coldfusion - How to detect if a script is running via a scheduled task -

is there way observe if script runned scheduled task.

i have script gives throws clientabortexception because using cfflush. need observe if script running via scheduled task script can run successfully.

it seems can check via cgi.http_user_agent:

<cfif cgi.http_user_agent neq "cfschedule"> <cfflush> </cfif>

coldfusion scheduled-tasks railo cfml

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -