end
local function clickhouse_collect(task)
+ if task:has_flag('skip') then return end
if not settings.allow_local and rspamd_lua_utils.is_rspamc_or_controller(task) then return end
for _,sym in ipairs(settings.stop_symbols) do
end
local function clusterting_idempotent_cb(task, rule)
+ if task:has_flag('skip') then return end
+ if not rule.allow_local and lua_util.is_rspamc_or_controller(task) then return end
+
local verdict = lua_util.get_task_verdict(task)
local score
local function elastic_collect(task)
if not enabled then return end
+ if task:has_flag('skip') then return end
if not settings.allow_local and lua_util.is_rspamc_or_controller(task) then return end
+
local row = {['rspamd_meta'] = get_general_metadata(task),
['@timestamp'] = tostring(util.get_time() * 1000)}
table.insert(rows, row)
local function gen_exporter(rule)
return function (task)
+ if task:has_flag('skip') then return end
local selector = rule.selector or 'default'
local selected = selectors[selector](task)
if selected then
end
local function ann_push_vector(task)
+ if task:has_flag('skip') then return end
+ if not settings.allow_local and lua_util.is_rspamc_or_controller(task) then return end
local scores = task:get_metric_score()
for _,rule in pairs(settings.rules) do
local sid = "0"
end
local function ratelimit_update_cb(task)
+ if task:has_flag('skip') then return end
+ if not settings.allow_local and lua_util.is_rspamc_or_controller(task) then return end
local prefixes = task:cache_get('ratelimit_prefixes')
if prefixes then