Closed Sennahoi closed 6 years ago
Also useful when wanting to notify of some action is done
Cron
Every 2 minutesExecute command
/do/hard/work
Desktop notification
- Job resulted in {{.stdout}}
As far as it seems to me, a chain can only consist of 2 parts: An event bee and an action bee. Can I put other beens in between? Or is there another way I'm not aware of?
@Sennahoi @Larpon you can chain together multiple chains. If you have a chain, create a second chain and link its first hive to the last hive of the existing chain. You can also indirectly trigger chains by reacting to changes in the directories or the system clock.
Do not forget that if Beehive crashes you will lose all the work done: I advise you to make a backup of the chains from time to time.
Cool, thanks for your input - but how do we do this from the UI or config? I'm not sure how you link hives?
Cool, thanks for your input - but how do we do this from the UI or config? I'm not sure how you link hives?
@Larpon it is neither easy nor intuitive but it can be done: the only way to link the hives is to exploit the fact that you can have multiple bees with the same hive but with a different name.
You have 3 bees: "Cron" hive as A1, "HTTP client" hive as B1 and "Exec" hive as A2.
You can create 2 chains:
It works like dominoes, because the end of the first chain will trigger the second. Assuming that "A1" is triggered every hour: at the end of the first hour it will start B1 which will make an HTTP GET request; when (and if) the HTTP GET request is complete it will trigger the "get" event that will start the second chain, which will trigger A2's action.
I hope I was clear. :-)
EDIT: add screenshots.
@Sennahoi if the problem is solved you should close the Issue. @Larpon all right? other difficulties?
Thanks for your help.
Thanks for your help.
@Sennahoi You are welcome.
@LorenzoAncora - super explanation. Thanks for your help!
I would like to create a chain of multiple actions, e.g.
As far as it seems to me, a chain can only consist of 2 parts: An event bee and an action bee. Can I put other beens in between? Or is there another way I'm not aware of?
Thanks Johannes