LATMOS::Accounts::Task
Parent class for regular task run by la-sync-manager
Instanciate a new task of type $module
The module must provide a _new()
function.
Return config value for the module
Return the priority for the module: 0, 1 or 2 (0 = first)
Call at task startup, can be overload
This function is to call to check if the module have to run or not.
$baserev
is the current base revision en $syncm
the revision when
la-sync-manager was run.
By default return true only if base has changed, overload for different behavior.
Return the minimum of second to wait to have the module running again.
Return 0 but can be override by Task module.
Return the number of second to wait before next run even there is changes in database.
Return 0 but can be override by Task module.
Return TRUE is the module has to be run or not.
Must be provided by module, do the desired work.
Call after run()
Reset the savepoint to 0 to force the module to be run again
Thauvin Olivier, <olivier.thauvin@latmos.ipsl.fr>
Copyright (C) 2009, 2010, 2011, 2012 by Thauvin Olivier
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.10.0 or, at your option, any later version of Perl 5 you may have available.