Skip to content
DataMiner Dojo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • YouTube Videos
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Agility
      • Learn more about Agile
        • Agile Webspace
        • Everything Agile
          • The Agile Manifesto
          • Best Practices
          • Retro Recipes
        • Methodologies
          • The Scrum Framework
          • Kanban
          • Extreme Programming
        • Roles
          • The Product Owner
          • The Agile Coach
          • The Quality & UX Coach (QX)
      • Book your Agile Fundamentals training
      • Book your Kanban workshop
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Program
    • DataMiner DevOps Support
    • Feature Suggestions
  • Downloads
  • Swag Shop
  • PARTNERS
    • Business Partners
    • Technology Partners
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

GQI LifeCycle – When does OnDestroy get called?

Solved79 views8 hours agoGQI live updates
3
Bautista Solanet [SLC] [DevOps Advocate]929 1 day ago 0 Comments

Hey Dojo,

I'm working with a GQI that uses Live-Updates. When I leave it open for some time on a tab I'm not looking at, it seems that the Live-Updates stop working because the GQI calls OnDestroy and unsubscribes from the updates, but when I open the tab, the GQI looks perfectly fine as though nothing has happened.

I'm aware that the GQI receives heartbeats from the browser to stay active, but I'd like to know if inactive tabs aren't able to send those heartbeats? I'd also like to know how I can avoid having situations where the GQI looks active but isn't really.

Thank you,

Bauti

Bautista Solanet [SLC] [DevOps Advocate] Selected answer as best 8 hours ago

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Ronald Gerard [SLC] [DevOps Enabler]2.03K Posted 8 hours ago 0 Comments

Hi Bautista,

There are a few reasons why the OnDestroy lifecycle method of a GQI extension instance might get called, usually because the entire query session was closed.

If the client did not explicitly close the query session, it can expire after no heartbeats are received for some time. Inactive browser tabs still send these heartbeats, although they may sometimes be throttled.

The browser heartbeats keep the WebAPI connection alive. As long as that connection exists, the WebAPI will keep all query sessions created through that connection alive as well. If the connection is lost, the browser application will display a banner asking the user to reload the tab.

Apart from that, OnDestroy can also be called in the following two scenarios:

  • The query session is closed because the connection between the GQI service and the DataMiner agent is lost. This can happen when the agent is stopped, restarted, upgraded, or when certain configuration changes are applied. In that case, all extensions are destroyed because the existing connections are no longer valid.
  • The GQI extension script or library is modified or recompiled. This invalidates any existing queries that use the extension.

In these scenarios, the browser will not be aware that the query session is no longer valid until additional data is requested. At the moment, there is no way to avoid this, but these situations should be rare.

The GQI logs can be used to verify what caused the query session to close.

If you suspect something else might be going on, feel free to reach out to our support team.

Bautista Solanet [SLC] [DevOps Advocate] Selected answer as best 8 hours ago
You are viewing 1 out of 1 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2026 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin