Table of Contents
Hector is a workflow orchestrator. After the insertion of components and specifications, Hector records the optimal grouped topological order for each workflow and controls the execution of definitions associated with them.
Hector has been fully implemented in Golang . The high performance and great library support surrounding this programming language builds a truly suitable environment for our orchestrator.
We show a small guide to clarify the installation of our tool.
As a prerequisite it is only necessary to have Golang installed on the system.
sudo apt install golang-go- Clone repository
git clone https://github.com/KhaosResearch/Hector.git
- Install dependencies
go mod tidy
-
Raise the api
go run cmd/api/main.go
-
Submit components
curl -X POST -H "Accept: Application/json" -H "Content-Type: application/json" -d @data/hector/toy_components/concat_files/concat-files-component.json localhost:8080/component/submit curl -X POST -H "Accept: Application/json" -H "Content-Type: application/json" -d @data/hector/toy_components/concat_messages/concat-messages-component.json localhost:8080/component/submit curl -X POST -H "Accept: Application/json" -H "Content-Type: application/json" -d @data/hector/toy_components/count_letters/count-letters-component.json localhost:8080/component/submit
-
Submit specification
curl -X POST -H "Accept: Application/json" -H "Content-Type: application/json" -d @data/hector/toy_specifications/toy_specification_1.json localhost:8080/specification/submit
-
Execute definition
curl -X POST -H "Accept: Application/json" -H "Content-Type: application/json" -d @data/hector/toy_definitions/toy_definition_1.json localhost:8080/definition/execute
-
Get result info (Replace <definition_id> with the identifier returned in console)
curl -X GET -i -H "Accept: application/json" -H "Content-Type: application/json" localhost:8080/result/get/<definition_id>
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt for more information.
Adrián Segura Ortiz - adrianseor.99@gmail.com
Project Link: https://github.com/KhaosResearch/Hector