Skip to content

App still running in background after closing the app #4181

Closed Answered by 07rohanraj
07rohanraj asked this question in Q&A
Discussion options

You must be logged in to vote

Actually, my issue has been resolved. This is working for me now:

def shutdown_app():
    print("Shutting down the application...")
    logging.info("Shutting down the application...")
    sys.exit(0)
 
# app.on_startup(startup_app)
app.on_shutdown(shutdown_app)

ui.run(native=True, window_size=(1400, 800), reload=False, port=native.find_open_port())

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@07rohanraj
Comment options

@falkoschindler
Comment options

@07rohanraj
Comment options

Answer selected by 07rohanraj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants