This repository is not longer in use, code merged into radix-job-scheduler
The job scheduler server for application jobs
Request from application container URLs
POST
http://<job-name>:8080/api/v1/jobs
- start new jobGET
http://<job-name>:8080/api/v1/jobs
- get job listGET
http://<job-name>:8080/api/v1/jobs/<job-name>
- get job statusDELETE
http://<job-name>:8080/api/v1/jobs/<job-name>
- stop and delete job
You need Go installed. Make sure GOPATH
and GOROOT
are properly set up.
Also needed:
go-swagger
(on a Mac, you can install it with Homebrew:brew install go-swagger
)statik
(install withgo get github.com/rakyll/statik
)
Clone the repo into your GOPATH
and run go mod download
.
We follow the semantic version as recommended by go.
radix-job-scheduler-server
has three places to set version
-
apiVersionRoute
inrouter/server.go
andBasePath
indocs/docs.go
- API version, used in API's URL -
Version
indocs/docs.go
- indicates changes in radix-job-scheduler-server logic - to see (e.g in swagger), that the version in the environment corresponds with what you wantedRun following command to update version in
swagger.json
make swagger
-
If generated file
swagger.json
is changed (methods or structures) - copy it to the public site
By default Info
and Error
messages are logged. This can be configured via environment variable LOG_LEVEL
(pods need to be restarted after changes)
LOG_LEVEL=ERROR
- log onlyError
messagesLOG_LEVEL=INFO
or not set - logInfo
andError
messagesLOG_LEVEL=WARNING
or not set - logInfo
,Warning
andError
messagesLOG_LEVEL=DEBUG
- logDebug
,Warning
,Info
andError
messages
By default swagger UI
is not available. This can be configured via environment variable USE_SWAGGER
USE_SWAGGER=true
- allows to use swagger UI with URL<api-endpoint>/swaggerui