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 functools | |
| import getpass | |
| import hashlib | |
| import io | |
| import copy | |
| import colorama | |
| import multiprocessing | |
| import os | |
| import pathlib | |
| import selectors |
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 functools | |
| import getpass | |
| import hashlib | |
| import io | |
| import os | |
| import pathlib | |
| import selectors | |
| import shlex | |
| import subprocess | |
| import sys |
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
| use sqlx::sqlite::SqlitePool; | |
| use std::env; | |
| use serde_pickle::Value; | |
| #[derive(sqlx::FromRow)] | |
| struct Cluster { | |
| name: String, | |
| launched_at: Option<i64>, | |
| handle: Option<Vec<u8>>, | |
| last_use: Option<String>, |
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
| version: '3.8' | |
| services: | |
| # Redis for OAuth2 Proxy session storage | |
| oauth2-redis: | |
| image: redis:7-alpine | |
| container_name: skypilot-oauth2-redis | |
| ports: | |
| - "6379:6379" | |
| restart: unless-stopped |
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
| name: prometheus | |
| resources: | |
| cpus: 1+ | |
| setup: | | |
| set -e | |
| PROMETHEUS_VERSION="3.5.0" | |
| NODE_EXPORTER_VERSION="1.9.1" |