https://github.com/zmoog/ifq-job
https://github.com/zmoog/ifq-job
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/zmoog/ifq-job
- Owner: zmoog
- License: apache-2.0
- Created: 2026-05-30T09:19:06.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2026-06-06T07:06:17.000Z (27 days ago)
- Last Synced: 2026-06-13T19:35:01.468Z (19 days ago)
- Language: Python
- Size: 43.9 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ifq-job
Minimal job that:
1. downloads IFQ PDF for a day (default: today) using `ifq`
2. uploads it to Dropbox
## Required env vars
- `IFQ_USERNAME`
- `IFQ_PASSWORD`
- `DROPBOX_ACCESS_TOKEN`
- `DROPBOX_ROOT_FOLDER`
## Optional env vars
- `IFQ_DAY` (format `YYYY-MM-DD`)
- `IFQ_RETRY_ATTEMPTS` (default `3`)
- `IFQ_RETRY_DELAY_SECONDS` (default `60`)
- `DROPBOX_KEEP_DAYS` (default `0`; when `> 0`, keep only the latest N IFQ issues in `DROPBOX_ROOT_FOLDER` and delete older issues)
- `OTEL_ENABLED` (`true`/`false`, default `false`)
- `OTEL_SERVICE_NAME` (default `ifq-job`)
- `OTEL_EXPORTER_OTLP_ENDPOINT` (optional OTLP traces endpoint)
- `OTEL_EXPORTER_OTLP_HEADERS` (optional `k=v,k2=v2` headers)
## Local run
```bash
python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
python ifq_job.py
```
## Build image
```bash
docker build -t ghcr.io/zmoog/ifq-job:latest .
```
## Observability
- Minimal plain logs are always printed to stdout.
- Traces are emitted via OpenTelemetry when `OTEL_ENABLED=true`.
- See [docs/observability-spec.md](docs/observability-spec.md).