A Go scheduler service for JobBOSS integration.
Copy .env.example to .env and update values as needed.
Use the provided Docker Compose example:
cp .env.example .env
docker compose -f docker-compose.example.yml up --buildThe compose example runs the application and a local PostgreSQL container. The application reads settings from .env.example and overrides the database URL with the compose-managed DB.
The scheduler binary supports a built-in health check mode that does not require curl inside the image:
/scheduler --healthcheckIt performs an HTTP GET against the service's own /healthz endpoint using the configured listen address and exits with:
0when healthy1when unhealthy
Compose example:
healthcheck:
test: ['CMD', '/scheduler', '--healthcheck']
interval: 10s
timeout: 5s
retries: 5
start_period: 20sGitHub Actions is configured in .github/workflows/ci.yml.
testjob runs on all pushes tomainand pull requests tomainpublishjob runs on pushes tomainand version tags likev1.2.3- On
main, the Docker image is published to GitHub Container Registry asghcr.io/<owner>/scheduler:main - On semver tag pushes, the image is published with full
x.y.ztag plus floatingx.yandxtags
The workflow also uploads the compiled binary as a workflow artifact.