Clear Pulsar backlogs held by subscriptions nobody consumes
Detect Apache Pulsar subscriptions with no consumers that still pin a large backlog, then clear or remove them behind a dry run, an approval pause and a live re-read that fails the run.
Monitor GitHub self-hosted runner health with Kestra. Automatically detect offline CI/CD nodes, create GitHub issues, and alert DevOps on Slack.
Enterprise software engineering teams rely on self-hosted GitHub Actions runners hosted across private AWS EC2 instances, GCP VMs, or Kubernetes clusters. When runner processes crash, disk volumes fill up, or host machines lose network reachability, jobs queue indefinitely and block continuous delivery pipelines. This blueprint queries GitHub's Actions API hourly for organization self-hosted runners, detects nodes in an offline status, files a prioritized GitHub tracking issue with full node metadata, and alerts on-call DevOps engineers via Slack.
check_runner_health_hourly (io.kestra.plugin.core.trigger.Schedule) initiates the audit every hour (shipped disabled for safe verification).probe_offline_runners (io.kestra.plugin.scripts.python.Script) interrogates the GitHub Actions REST API (GET /orgs/{org}/actions/runners) and extracts nodes with status == 'offline'.branch_on_offline_runners (io.kestra.plugin.core.flow.If) evaluates whether any nodes are offline (has_offline == true):then: Automatically files a GitHub tracking issue via create_runner_incident_issue (io.kestra.plugin.github.issues.Create) and alerts the DevOps Slack channel via alert_devops_slack (io.kestra.plugin.slack.notifications.SlackIncomingWebhook).else: Emits an informational log entry (log_fleet_healthy) confirming full fleet availability.log_fleet_summary (io.kestra.plugin.core.log.Log) logs the final node counts.errors block alerts Slack if API tokens expire or GitHub API limits are reached.Kestra coordinates external API inspection, data filtering, conditional escalation, and chat notifications inside a unified, declarative pipeline. It injects personal access tokens securely, handles transient API failures, and maintains full execution logs without maintaining custom cron scripts or serverless bots.
admin:org (read runners) and repo permissions.GITHUB_TOKEN: Token used to query GitHub Actions runner APIs and open tracking issues.SLACK_WEBHOOK: Incoming Webhook URL for platform alerts.github_organization (STRING, default my-enterprise-org): Name of the GitHub organization hosting the self-hosted runner pool.target_repository (STRING, default my-enterprise-org/platform-engineering): Target GitHub repository for logging runner downtime issues.outputs.probe_offline_runners.vars.total_runners: Total number of registered runners in the organization.outputs.probe_offline_runners.vars.offline_count: Count of runners currently in offline state.outputs.probe_offline_runners.vars.offline_runners: List of offline runner objects (id, name, os, status, busy).GITHUB_TOKEN and SLACK_WEBHOOK secrets in your Kestra namespace.github_organization and target_repository to match your organization.check_runner_health_hourly trigger for continuous fleet health monitoring.production-gpu) to prioritize mission-critical build infrastructure.