test-lua: updated with sample cron function
This commit is contained in:
parent
9d40537345
commit
48e96f3a7a
1 changed files with 6 additions and 0 deletions
6
test.lua
6
test.lua
|
@ -88,6 +88,12 @@ end
|
|||
function on_get_difference_end ()
|
||||
end
|
||||
|
||||
function cron()
|
||||
-- do something
|
||||
postpone (cron, false, 1.0)
|
||||
end
|
||||
|
||||
function on_binlog_replay_end ()
|
||||
started = 1
|
||||
postpone (cron, false, 1.0)
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue