Scot Ranney • April 10, 2024
MvASYNC creates a process in the background that is immune to timeouts for the most part. It runs a process that lasts 60 minutes according to miva.
Using it in a module is pretty easy - just make sure open_store() is at or near the top. For my modules I also call my module settings.
open_store()
<MvASYNCHRONOUS> <MvASSIGN NAME = "l.settings" VALUE = "{ config(l.module_settings) }" /> <MvASSIGN NAME = "l.ok" VALUE = "{ open_store() }" /> </MvASYNCHRONOUS>
mvkb_async