Arrow Flight SQL Endpoint TLS Compliance Gate
Probe an Apache Arrow Flight SQL endpoint and alert Slack when it answers over an unencrypted connection in violation of your own TLS policy.
Trigger Kestra on new Vertica rows, post a batched Slack alert with retries, then mark only the alerted order ids as processed.
Event-driven Kestra flow that watches a Vertica analytics table for unprocessed rows, posts a single batched Slack alert per poll window, and then marks only the alerted order_ids as processed. Built for honest at-least-once delivery on a columnar warehouse: a row is never flipped to processed = true before its Slack notification has actually succeeded, so transient webhook failures cannot silently drop orders. Replaces brittle in-trigger afterSQL updates with a safer flow-side update scoped to the exact ids that were alerted.
poll_new_orders trigger (io.kestra.plugin.jdbc.vertica.Trigger) runs every PT5M, selecting up to 500 rows from staging.orders where processed = false, ordered by order_id. The LIMIT 500 keeps batches bounded so a backlog cannot blow up memory.{{ trigger.rows }} and the count as {{ trigger.size }}. The order_ids variable joins the ids into a comma-separated list for the downstream UPDATE.notify_batch (io.kestra.plugin.slack.notifications.SlackIncomingWebhook) posts one batched message containing the count, the full id list, and the first order's detail. A constant retry (5 attempts, PT10S interval) absorbs Slack 429 and 5xx responses.mark_processed (io.kestra.plugin.jdbc.vertica.Query with fetchType: NONE) runs only after the alert succeeds, executing UPDATE staging.orders SET processed = true WHERE order_id IN (...) scoped to the alerted ids.errors block posts a second Slack message naming the execution id and the affected ids if anything fails, so re-alerted batches are never invisible.UPDATE that touches only the alerted ids, immune to inserts arriving between SELECT and UPDATE.Vertica's own scheduler can run SQL, but it cannot wait on a Slack webhook, decide whether to mark rows based on that webhook's HTTP response, retry only the failed step, or surface failures with the affected ids. Kestra's event trigger turns a SELECT into a real workflow: declarative YAML, per-task retry, timeout, a flow-level errors block, full execution lineage in the UI, and concurrency.limit style serialization so overlapping polls cannot double-process a window. The trigger fires on data, not on a clock guess, and the marking step is conditional on alert success, something an in-database job simply cannot express.
staging.orders table with order_id, customer_name, product, total, and a boolean processed column.vertica_url variable updated to your JDBC URL (default jdbc:vertica://vertica-host:5433/analytics).VERTICA_USERNAME: Vertica database user used for both the trigger poll and the flow-side update.VERTICA_PASSWORD: password for that Vertica user.SLACK_WEBHOOK: Slack incoming webhook URL used by notify_batch and the alert_failure error handler.VERTICA_USERNAME, VERTICA_PASSWORD, and SLACK_WEBHOOK to your Kestra namespace secrets.vertica_url variable and the trigger SQL to match your table, schema, and unprocessed-flag column.interval (PT5M is a good default for a warehouse; sub-minute polling is not recommended for columnar storage).processed = false in staging.orders to see an execution start, a Slack message land, and the row flip to processed = true.io.kestra.plugin.core.flow.Loop) over {{ trigger.rows }} to enrich each order before notifying.processed boolean with a watermark column (e.g. alerted_at TIMESTAMP) and adapt the SELECT and UPDATE accordingly.