on_success
on_success(ctx) runs after a scrape cycle completes successfully. Defined in defer.lua.
Signature
Section titled “Signature”function on_success(ctx) -> voidParameters
Section titled “Parameters”| Field | Type | Description |
|---|---|---|
ctx |
table | The cycle context table |
Returns
Section titled “Returns”None.
Example
Section titled “Example”function on_success(ctx) log("Cycle completed successfully")endSee Also
Section titled “See Also”- on_error - Called when cycle fails
- on_finally - Always called after success or error