title: passing parameters to apscheduler handler function
body: <p>I am using apscheduler and I am trying to pass in parameters to the handler function that gets called when the scheduled job is launched:</p>
  
  <pre><code>from apscheduler.scheduler import Scheduler
  import time
  
  def printit(sometext):
      print "this happens every 5 seconds"
      print sometext
  
  sched = Scheduler()
  sched.start()
  
  sometext = "this is a passed message"
  sched.add_cron_job(printit(sometext), second="*/5")
  
  while True:
      time.sleep(1)
  </code></pre>
  
  <p>Doing this gives me the following error:</p>
  
  <pre><code>TypeError: func must be callable
  </code></pre>
  
  <p>Is it possible to pass parameters into the function handler. If not, are there any alternatives? Basically, I need each scheduled job to return a string that I pass in when I create the schedule. Thanks!</p>