Skip to content

Workflow for retriving raw data

License

Notifications You must be signed in to change notification settings

clusterflick/data-retrieved

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

data-retrieved

This repository contains the automated workflow for retrieving raw cinema data for the Clusterflick project.

Purpose

The workflow runs retrieve commands for all venues and event sources, pulling raw data from venue websites and event listing platforms. This collected data is then published as a release on this repository for downstream processing.

How It Works

The workflow executes the retrieve command for each venue:

npx clusterflick/scripts retrieve <venue-identifier>

This command:

  • Connects to the venue website or event listing platform
  • Extracts raw event data
  • Saves the data for downstream transformation

Each retrieve command includes automatic retry logic to handle transient failures.

Schedule

The workflow runs automatically every day at 3am UTC and can also be triggered manually via workflow dispatch.

Workflow Structure

Retrieve commands are organized into parallel job groups to:

  • Minimize total wall clock time
  • Prevent cascading failures (one command failure won't stop others)
  • Enable individual job restarts when issues occur

Maintenance

Adding New Venues

When a new venue is added to the system, this workflow must be updated to include the retrieval step. To add a venue:

  1. Identify the appropriate job group (or create a new one if needed)
  2. Add a new step to run the retrieve command for the venue:
    - name: venue-identifier
      run: npx clusterflick/scripts retrieve venue-identifier

Note: Consider using nick-fields/retry@v3 for venues with unreliable connections or rate limiting issues.

Handling Failures

  • Failed jobs can typically be restarted individually without rerunning the entire workflow
  • Code fixes should be applied to the clusterflick/scripts repository, which is pulled in at build time

About

Workflow for retriving raw data

Resources

License

Stars

Watchers

Forks