Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jirihnidek/ygg-echo-python-worker


https://github.com/jirihnidek/ygg-echo-python-worker

Last synced: about 8 hours ago
JSON representation

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
```