← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 636607] Re: add an option to stop a cron after the first execution (wishlist)

 

Hello Servabit team,

A cron job can be set to have only 1 execution (number_call = 1) in which case it will stop executing after the first time. 
If you need the cron to disappear as well from the list, the job can also delete itself from ir.cron during its execution (this is now properly supported in OpenERP v6.0)

As a result, we feel that adding this option in the official server
would only make ir.cron objects even more complicated to use.

Thanks for reporting and providing a patch for the community to use,
though!

** Changed in: openobject-server
       Status: New => Won't Fix

-- 
add an option to stop a cron after the first execution (wishlist)
https://bugs.launchpad.net/bugs/636607
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Server: Won't Fix

Bug description:
we added an option to stop a cron object after the first execution

a patch is included 

"This patch is applied to ir.cron object.Using this patch is possible to 
delete the cron after the execution ( just adding to function called by 
cron an argument with value 'kill'). It is used especially after a 
modification to the database structure for upgrading the information"