Setup¶
One-time machine setup for Tasks-Scheduler local development (no Docker).
Prerequisites¶
| Requirement | Why |
|---|---|
| Python 3.12 | Deploy scripts create python3.12 venvs |
| AWS credentials | secretsmanager:GetSecretValue on /stg/*; /prd/mysql/tiktok if LOCAL_PROD_DB=1 |
| GitHub access | requirements.txt installs private fs_config from GitHub |
Venv install¶
cd Tasks-Scheduler
python3.12 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
Verify AWS:
aws sts get-caller-identity
Environment label¶
export ENVIRONMENT=local
ENVIRONMENT |
Secrets from | Default if unset |
|---|---|---|
local |
/stg/... |
— |
stg |
/stg/... |
— |
prd |
/prd/... |
yes |
Unset defaults to production
Missing ENVIRONMENT selects production secret paths. Always export
ENVIRONMENT=local on a laptop.
Optional: production MySQL¶
export LOCAL_PROD_DB=1
Keeps S3/Redis/RabbitMQ on staging; MySQL points at /prd/mysql/tiktok.
Branches¶
| Branch | Role |
|---|---|
stage |
Staging integration / deploy target |
main |
Default branch (production lineage) |
Per-task PRs typically merge to stage first, then cherry-pick docs to main.