MCPcopy
hub / github.com/pocketbase/pocketbase / OnTerminate

Method OnTerminate

core/app.go:725–725  ·  view source on GitHub ↗

OnTerminate hook is triggered when the app is in the process of being terminated (ex. on SIGTERM signal). Note that the app could be terminated abruptly without awaiting the hook completion.

()

Source from the content-addressed store, hash-verified

723 //
724 // Note that the app could be terminated abruptly without awaiting the hook completion.
725 OnTerminate() *hook.Hook[*TerminateEvent]
726
727 // OnBackupCreate hook is triggered on each [App.CreateBackup] call.
728 OnBackupCreate() *hook.Hook[*BackupEvent]

Callers 6

ExecuteMethod · 0.65
ServeFunction · 0.65
CleanupMethod · 0.65
NewTestAppWithConfigFunction · 0.65
watchHooksMethod · 0.65

Calls

no outgoing calls

Tested by 1