@with_session
def config_changed(task=None, session=None):
 log.debug((u'Marking config for %s as changed.' % (task or u'all tasks')))
 task_hash = session.query(TaskConfigHash)
 if task:
  task_hash = task_hash.filter((TaskConfigHash.task == task))
 task_hash.delete()

@ with_session def config_changed ( task = None , session = None ) : log . debug ( ( u'Marking config for %s as changed.' % ( task or u'all tasks' ) ) ) task_hash = session . query ( TaskConfigHash ) if task : task_hash = task_hash . filter ( ( TaskConfigHash . task == task ) ) task_hash . delete ( )
returns true if config has changed .