~clearcorp-drivers/openobject-server/5.0-ccorp

« back to all changes in this revision

Viewing changes to bin/addons/base/ir/ir_cron.py

  • Committer: Jay(OpenERP)
  • Date: 2010-12-31 19:28:19 UTC
  • mfrom: (2149.1.1 schedule-future)
  • Revision ID: jvo@tinyerp.com-20101231192819-kulboglqfbms0dh9
[Merge] Merged the Branch of Don Kirby containing the fix to Schedule jobs even if their next time has passed

Show diffs side-by-side

added added

removed removed

Lines of Context:
123
123
                    cr.commit()
124
124
 
125
125
 
126
 
            cr.execute('select min(nextcall) as min_next_call from ir_cron where numbercall<>0 and active and nextcall>=now()')
 
126
            cr.execute('select min(nextcall) as min_next_call from ir_cron where numbercall<>0 and active')
127
127
            next_call = cr.dictfetchone()['min_next_call']
128
128
            if next_call:
129
129
                next_call = time.mktime(time.strptime(next_call, '%Y-%m-%d %H:%M:%S'))