Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jirihnidek/ygg-echo-python-worker
https://github.com/jirihnidek/ygg-echo-python-worker
Last synced: about 8 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/jirihnidek/ygg-echo-python-worker
- Owner: jirihnidek
- License: gpl-3.0
- Created: 2024-02-08T08:02:47.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2024-06-10T10:40:56.000Z (5 months ago)
- Last Synced: 2024-06-10T12:29:19.522Z (5 months ago)
- Language: Python
- Size: 29.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Example of yggdrasil echo worker
Example of yggdrasil echo worker using dasbus Python package.
Requirements:
* https://github.com/rhinstaller/dasbus
To run example of yggdrasil echo worker run following code
```
python ./example.py
```It is possible to trigger job (or more) using:
```
echo '"hello"' | go run ./cmd/yggctl generate data-message --directive echo - \
| pub -broker tcp://localhost:1883 -topic yggdrasil/$(hostname)/data/in
```It is possible to cancel job using cancel command.
```
echo '{"command":"cancel", "arguments":{"directive":"echo","messageID":""}}' \
| go run ./cmd/yggctl generate control-message --type command - \
| pub -broker tcp://localhost:1883 -topic yggdrasil/$(hostname)/control/in
```