Hello! I’m working on integrating a decentralized exchange (DEX) that uses atomic swaps to settle trades between different chains. The settling process can take anywhere from a few minutes to up to 30 minutes (depending on the chains involved), during this time it’s critical that the container remain running.
I’m wondering what is the best way to ensure this? What is the maximum value of
stop_grace_period according to Umbrel’s best practice? I realize that setting this to a high value, e.g. 30 minutes harms overall user experience as the user might be left wondering whether the system got stuck, if shutting down my container takes too long.
Perhaps setting this value to something like a few minutes, and the app displaying a notification in its own UI alerting the user about the impending shutdown, and advising them to restart the DEX as soon as possible? (The atomic swaps can tolerate a few minutes of downtime.)
Any inputs, ideas and advice on this are most appreciated!