fix: implement context handling in analytic and processing functions for graceful shutdown

This commit is contained in:
Jacky 2025-05-05 02:46:18 +00:00
parent 710b9f781e
commit fc507ccd3b
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
4 changed files with 24 additions and 3 deletions

View file

@ -30,9 +30,13 @@ import (
cSettings "github.com/uozi-tech/cosy/settings"
)
var Context context.Context
func Boot(ctx context.Context) {
defer recovery()
Context = ctx
async := []func(){
InitJsExtensionType,
InitNodeSecret,