This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Install docker | |
# This sets a percona-5.6 container to run continuously | |
# set ROOT_MYSQL_PASSWORD | |
export ROOT_MYSQL_PASSWORD="blah" #CHANGEME | |
sudo docker pull percona:5.6 | |
# This folder houses the server data | |
sudo mkdir /data/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from datetime import datetime, timedelta | |
def hours_since_timestamp_s(timestamp_s): | |
return datetime.utcnow() - datetime.fromisoformat(timestamp_s) | |
def get_all_parallel_jobs(org_slug, api_token, stats_hours, cancel, cancel_hours): | |
headers = { | |
'Circle-Token': api_token, | |
'Content-Type': 'application/json' |
OlderNewer