Genie Job Heartbeat
✓ Published0🌍 Public
Aadkatrit
Last edited Aug 23, 2017
Created on Aug 22, 2017
This example monitors the runtime status of a Netflix Genie job by emitting an audible beep each time the job is confirmed to be running. It shows a continuous polling loop that checks the job’s state through the Genie REST API, specifically querying the `/api/v3/jobs` endpoint with a size limit of 100 results. The script uses `curl` to fetch the JSON response and `jq` to filter the job list for the target job ID and its current status, grepping for the string “RUNNING” to trigger the terminal bell via `tput bel`. The loop repeats at a user-defined interval until the job leaves the running state.
AI-generated description