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
@@ -198,7 +198,7 @@ Because they originate from ingestion, they are pushed to the **priority** task
198
198
This registration also supports `refresh=` and `may_change=` for recomputation during module-config refresh; see [Refresh-on-config-change behavior for ingestion hooks](#refresh-on-config-change-behavior-for-ingestion-hooks).
@@ -225,7 +225,7 @@ The hook may return `None` or a list of `DataPointTask` objects to be re-ingeste
225
225
As with `on_entity_creation`, this registration also supports `refresh=` and `may_change=` for recomputation during module-config refresh; see [Refresh-on-config-change behavior for ingestion hooks](#refresh-on-config-change-behavior-for-ingestion-hooks).
@@ -341,7 +341,7 @@ The hook may return `list[DataPointTask]`.
341
341
Those tasks are queued back into ingestion, and DP3 also attempts to fold same-entity outputs into the in-memory snapshot-preparation path before correlation hooks run, so timeseries-derived values may influence the same snapshot run.
@@ -372,8 +372,8 @@ In practice, `register_correlation_hook(...)` is the right choice when the modul
372
372
Both variants run during snapshot creation, after current values have been computed from the stored master record and after linked entity records have been loaded for the relation paths used by registered hooks.
@@ -456,7 +456,7 @@ The callback receives no arguments.
456
456
It is mainly used to finish or clean up snapshot-run state after correlation callbacks have completed, and it may return `list[DataPointTask]` queued into the main task queue.
@@ -471,7 +471,7 @@ For `on_entity_creation`, the refresh path re-invokes the hook with the entity `
471
471
For `on_new_attr`, the refresh path likewise does not replay an original datapoint payload.
472
472
In practice, refresh mode should therefore be reserved for hooks that can recompute from persisted state and do not require the original incoming datapoint contents to be present again.
473
473
474
-
[Real usages of `refresh=`](https://github.com/search?q=repo%3ACESNET%2FAmfora+OR+repo%3ACESNET%2FADiCT+OR+repo%3ACESNET%2FNERD2+refresh%3D&type=code)
474
+
{{ query_cesnet_apps("Real usages of `refresh=`", "refresh=") }}
475
475
476
476
## Periodic updater hooks: periodic processing over master records
477
477
@@ -529,7 +529,7 @@ When registering it, `hook_id` must be unique.
529
529
It is also important to set `period` realistically for the hook's execution cost; if the period is too short, runs may overlap with later batches and effectively stretch the refresh cadence.
@@ -557,7 +557,7 @@ The callback therefore receives only `entity_type` and `eid`, and it may return
557
557
As with `periodic_update_hook`, `hook_id` must be unique and `period` should be configured realistically so updater batches can complete before the next sweep is due.
@@ -592,7 +592,7 @@ Its return value is ignored by DP3.
592
592
In practice, this hook is most useful for housekeeping, external polling, maintenance, metrics emission, periodic cleanup, and similar module-level maintenance work.
0 commit comments