Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6590377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:17:29+00:00 2026-05-25T17:17:29+00:00

Pyramid supports an ApplicationCreated event. However I can’t find any ApplicationDestroyed / ApplicationShutdown event.

  • 0

Pyramid supports an ApplicationCreated event. However I can’t find any ApplicationDestroyed/ApplicationShutdown event. Is it at all possible do execute a function upon shutdown.

Do I have any choice other than to go further up my stack: ie. I’m using gevent inside uWSGI. It might be possible to get gevent or uWSGI to run my shutdown code, but it certainly isn’t as pretty.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:17:30+00:00Added an answer on May 25, 2026 at 5:17 pm

    Pyramid does not support any shutdown event.

    However Python has a atexit event, that runs on interpreter shutdown

    http://docs.python.org/library/atexit.html

    import atexit
    
    @atexit.register
    def goodbye():
        print "You are now leaving the Python sector."
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to get pyramid absolute application url in main() function? I
I'm trying to find connected components using the Pyramid Segmentation function in OpenCV and
There's only a brief introduction to Chameleon Template in document of pyramid. Any detailed
i've been working on this mlm (pyramid) project, I am done with all the
I've been looking in the Pyramid API and haven't been able to find a
Does anyone know how it can be displayed the overview pyramid and the jdepend
What is the equivalent of template context in Pyramid? Does the IBeforeRender event in
Since Pyramid does not have any form dependencies, I need recommendations for form handling.
I have a Pyramid application using Beaker Encrypted cookie sessions. I can log a
I have a Pyramid app that I've been developing and viewing locally through http://localhost:6543

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.