hosting/workflows/live-stream.yml · chapter The dashboard and publishing, file 8 · 124 lines · open in the repository
What it does
The cloud streamer (decision 0015): the live demo on GitHub’s servers instead of a team member’s computer. It runs scripts/demo_live.sh, which replays the stored data through the Spark job and publishes every micro-batch to the hosted dashboard. The project comes from this repository’sproject branch: a copy of what the demo needs, pushed after each commit on the team repository’s
main (scripts/sync_live_stream.sh), so nothing here needs access to github.sfu.ca.
Start: Actions > Live stream > Run workflow (mode “start”, a first day, a speed)
Stop: Cancel run. The job stops cleanly, and the run is saved so it can carry on.
Resume: Run workflow with mode “resume”: the last run carries on from where it stopped.
Restart: Run workflow again; a run already streaming is stopped first (one stream at a time).
It also stops by itself when the replay runs out (about 15 minutes from 2023-06-01).
Needs one repository secret, HF_TOKEN (Settings > Secrets and variables > Actions); see README.md.
The copy that counts is hosting/workflows/live-stream.yml in the team repository on github.sfu.ca;
scripts/install_workflows.sh puts it here.
Source
hosting/workflows/live-stream.yml