How to pass heartbeat in DAML Trigger
App Development6 posts206 views1 likesLast activity Sep 2022
PR
Pris17OP
Aug 2022I am using DAML 1.18.0 version. I am using trigger for one of the automation job. I want to know how to pass heartbeat or use heartbeat in DAML Trigger?
P.S. Any sample examples will help.
Thanks
NE
nemanja
Aug 2022Hi @Pris17 ![]()
Can you provide more information on what you’re trying to do?
CO
cocreature
Aug 2022The heartbeat is just a field you set when defining your trigger Module Daml.Trigger — Daml SDK 2.3.2 documentation, e.g.,
myTrigger = Trigger with
…
heartbeat = Some (minutes 10)
PR
Pris17
Sep 2022So do we need to pass the value of heartbeat in the command to start the trigger? If yes, how to provide heartbeat details in the command?
CO
cocreature
Sep 2022No, you need to set the value in your Daml code
PR
Pris17
Sep 2022Got it. Thanks @cocreature … Let me try and check it.