title: how to monitor if a scheduled task in Coldfusion sets up correctly?
body: <p>I'm trying to setup my first Coldfusion scheduled task and can't get it to work. I don't have access to the <code>cfadmin</code> so, I need to do it using the <code>cfschedule</code> tag. I'm setting up something like this:</p>
  
  <pre><code>&lt;cfschedule action = "update"
      task = "taskManager" 
      operation = "HTTPRequest"
      url = "path/to/task_manager.cfm"
      startDate = "12/01/12"
      startTime = "10:30 PM"
      interval = "60"
      resolveURL = "Yes"
      publish = "No"
      path = "#variables.baseUrl#"
      requestTimeOut = "100"&gt;
  </code></pre>
  
  <p>Which I'm putting in <code>task_init.cfm</code>. If I open this page in the browser, no errors are reported, but nothing happens. </p>
  
  <p><strong>Question:</strong><br>
  I know scheduled tasks need to be allowed in CFAdmin. Still is there a way to test if the task is running? The task should just send an email right now, so I can see if it is working, but I'm not getting anything, I'm curious as to whether I'm doing something wrong.</p>
  
  <p>Thanks! </p>
  
  <p><strong>EDIT:</strong><br>
  Ok, so I'm halfway there. I can list tasks like so:</p>
  
  <pre><code> &lt;cfdump output="dump.txt" label="catch" var="#createobject("java","coldfusion.server.ServiceFactory").getCronService().listall()#"&gt;
  </code></pre>
  
  <p>which gives me all currently scheduled tasks.</p>
  
  <p>I'm calling my task like this now:</p>
  
  <pre><code>&lt;cfschedule  
  proxyport="80"
  port="80"
  action="update"
  operation="HTTPRequest"
  task="taskManager_init"
  interval="60"
  publish="NO"
  requestTimeOut="500"
  resolveurl="NO"
  startDate="12/01/2012"
  startTime="11:30:00 AM"
  URL="http://www.page.com/t/task_manager.cfm"
  &gt;
  </code></pre>
  
  <p>which, when I call and then dump all tasks creates an entry like so:</p>
  
  <pre><code> xx) [undefined array element] 
  </code></pre>
  
  <p>instead of:</p>
  
  <pre><code> xx) [struct]
  disabled: NO
  file: [empty string]
  http_port: 80
  http_proxy_port: 80
  interval: xxxx
  operation: HTTPRequest
  password: xxxxxxxxxx
  path: [empty string]
  paused: NO
  proxy_server: [empty string]
  publish: NO
  request_time_out: 500
  resolveurl: NO
  start_date: 12/12/2012
  start_time: 1:00:00 AM
  task: some task
  url: xxxxx
  username: xxxxxxx
  </code></pre>
  
  <p>I can remove my <code>[undefined array element]</code> calling:</p>
  
  <pre><code> &lt;cfschedule action = "delete" task = "taskManager_init"&gt; 
  </code></pre>
  
  <p>So, I'm able to add/remove tasks, but they don't show up correctly in the list and hence don't execute as they should.</p>
  
  <p>Any idea what I'm doing wrong? (besides calling my sys-admin on Monday...)</p>
  
  <p>Thanks! </p>