Skip to content
Discussion options

You must be logged in to vote

I got help from @SashaCX75 in the Discord channel — this advice turned out to be the key:

You can see how this approach works in one of his projects:

After applying this, my app started running 24/7 without interruption.


Key points from my implementation

In the app-service, make sure to define:

  • onInit
  • onEvent

And every exit point should call appService.exit() — including inside try/catch.

Example from app-service/backgr…

Replies: 2 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@T4ASICK
Comment options

@T4ASICK
Comment options

@mrklos
Comment options

@T4ASICK
Comment options

Answer selected by mrklos
@mrklos
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants