Returns queue name, based on task ID. This allows to route event to the correct queue, without hardcoding logic in the Web API.
To run all services, check instructions in main README
- Install libraries
pip install -r requirements.txt
- Start FastAPI
uvicorn endpoint:app --port=5000 --reload
- Workflow FastAPI endpoints
http://127.0.0.1:5000/docs
- Build container
docker build --tag katanaml/skipper-workflow .
- Run container
docker run -it -d --name skipper-workflow -p 5000:5000 katanaml/skipper-workflow:latest
- Workflow FastAPI endpoints
http://127.0.0.1:5000/docs
- Create namespace
kubectl create ns katana-skipper
- Create Pod
kubectl apply -n katana-skipper -f workflow-pod.yaml
- Check Pod status
kubectl get -n katana-skipper pods
- Describe Pod
kubectl describe -n katana-skipper pods skipper-workflow
- Open Pod port for testing purposes
kubectl port-forward -n katana-skipper deploy/skipper-workflow 5000:5000
- Open Pod logs
kubectl logs -n katana-skipper -f -l app=skipper-workflow
- Test URL
http://127.0.0.1:5000/docs
- Check Pod service
kubectl get -n katana-skipper svc skipper-workflow
- Delete Deployment
kubectl delete -n katana-skipper -f workflow-pod.yaml
- Delete all resources
kubectl delete all --all -n katana-skipper
.
├── api
│ ├── models.py
│ ├── router.py
│ ├── workflow.json
│ └── workflow.py
├── endpoint.py
├── Dockerfile
├── README.md
├── workflow-pod.yaml
└── requirements.txt
Licensed under the Apache License, Version 2.0. Copyright 2020-2021 Katana ML, Andrej Baranovskij. Copy of the license.