Skip to content

researchapps/cron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cron

When do we run GitHub cron jobs?

img/cron.png

⭐️ Here is what I found ⭐️

Background

I tend to be consistent with when I run cron jobs, typically choosing the middle of the night, or the first few days of the month. It occurred to me that this might be true of others, and it would be interesting to see when users are running cron jobs, as evidenced by their github workflow files.

I can only sample a subset of search results, so this analysis should be considered just a sample.

Usage

First, install requirements (ideally in a virtual environment).

$ pip install -r requirements.txt

Export a GitHub personal access token to the environment:

$ export GITHUB_TOKEN=xxxxxxxxxxx

And run the script to generate the data:

$ python analyze-cron.py

Without a username (above) will do a general GitHub search with up to 1K results. You can also a username to search for specific orgs/users:

$ python analyze-cron.py vsoch

This will generate data in data that renders into index.html. Example data is provided here, along with generating for my username. There are over 400K results, but we can only get 1000, so it's just a small sample. If you run this again, you will likely get different results as it's based on indexing.

About

How do people schedule GitHub workflow cron?

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published