Library /
Rule
Platform job
A rule that runs one of Nistor's maintenance jobs every six hours, on the Cloud Run service that hosts them.
Use it when A housekeeping job runs from a cron today and you want it on the graph, with runs and incidents like any other.
- name: Renew Workspace event subscriptions
code_id: platform/workspace-renew-subscriptions
status: active
applies_to:
node_type: CloudRunService
node_ids:
- CloudRunService_projects/acme-ops-dev/locations/europe-west1/services/nistor-jobs-{INSTANCE}
when:
schedule:
cron: "15 */6 * * *"
time_zone: UTC
then:
target:
same_as_applies_to: true
scope: node
do:
kind: single
action:
type: nistor_job
parameters:
job: workspace_renew_subscriptions
Taken from packages/plugins/platform_jobs/README.md
Nistor's own jobs, here the renewal of the Google Workspace event subscriptions, are platform jobs: the nistor_job
action runs the job named in parameters.job on the jobs service, which the compiler adds to the graph as a
CloudRunService node.
nistor rules check-platform-targets reports a platform rule that is not active or matches no node. Turn off the cron
that used to drive the same job, so each job has exactly one driver.
Feeds fromGoogle Cloud