title: python: advanced python scheduler - cron style scheduling - pass function parameters
body: <p>I am trying to schedule con style job using advanced python scheduler. Everything is fine whenever I use function that does not require any parameters, however I am unable to schedule the same job passing one or more arguments. Could you please advise?</p>
  
  <pre><code>from apscheduler.scheduler import Scheduler
  
  def job_def(var1, var2):
      print "%s - %s" % (str(var1), str(var2))
  
  
  s = Scheduler()
  
  s.add_cron_job(job_def,['hello', 'there'], seconds='*/30')
  
  s.start()
  </code></pre>
  
  <p><strong>Error:</strong> </p>
  
  <pre><code>Traceback (most recent call last):   File "&lt;stdin&gt;", line 1, in &lt;module&gt; 
  
  File "/usr/local/lib/python2.7/dist-packages/APScheduler-2.0.2-py2.7.egg/apscheduler scheduler.py", line 346, in add_cron_job start_date=start_date)   
  
  File "/usr/local/lib/python2.7/dist-packages/APScheduler-2.0.2-py2.7.egg/apscheduler/triggers/cron/__init__.py", line 44, in __init__  field = field_class(field_name, exprs, is_default)   
  
  File "/usr/local/lib/python2.7/dist-packages/APScheduler-2.0.2-py2.7.egg/apscheduler/triggers/cron/fields.py", line 29, in __init__ self.compile_expressions(exprs)   
  
  File "/usr/local/lib/python2.7/dist-packages/APScheduler-2.0.2-py2.7.egg/apscheduler/triggers/cron/fields.py", line 56, in compile_expressions self.compile_expression(expr)   
  
  File "/usr/local/lib/python2.7/dist-packages/APScheduler-2.0.2-py2.7.egg/apscheduler/triggers/cron/fields.py", line 69, in compile_expression (expr, self.name))
  </code></pre>