You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For more flexible functionality, added the ability
to create a custom iterator that will be created at
the selected index (iterate_with). You can also pass a
predicate that will stop the fullscan process,
if required(process_while).
Needed for: #50
Copy file name to clipboardExpand all lines: README.md
+4
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,10 @@ Run a scheduled task to check and process (expire) tuples in a given space.
50
50
The index value may be a single value, if the index consists of one field, a tuple with the index key parts, or a function which returns such value.
51
51
If omitted or nil, all tuples will be checked.
52
52
*`tuples_per_iteration` - Number of tuples to check in one batch (iteration). Default is 1024.
53
+
*`process_while` - Function to call before checking each tuple.
54
+
If it returns false, the current tuple scan task finishes.
55
+
*`iterate_with` - Function which returns an iterator object which provides tuples to check, considering the start_key, process_while and other options.
56
+
There's a default function which can be overriden with this parameter.
53
57
*`on_full_scan_start` - Function to call before starting a tuple scan.
54
58
*`on_full_scan_complete` - Function to call after completing a full scan.
55
59
*`on_full_scan_success` - Function to call after successfully completing a full scan.
0 commit comments