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
    • Empower Replay: Limited Edition
    • 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
      • Book your Agile Fundamentals training
      • Book you Kanban workshop
      • 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)
    • >> Go to DataMiner Docs
  • DevOps
    • About the DevOps Program
    • Sign up for the DevOps Pogram
    • DataMiner DevOps Support
    • Feature Suggestions
  • Swag Shop
  • Downloads
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Solutions
    • Deal Registration
  • Contact
    • Sales, Training & Certification
    • DataMiner Support
    • Global Feedback Survey
  • >> Go to dataminer.services

How to remove QAction or group from stack when QAction gets stuck?

Solved995 views10th July 2023QAction stuck
6
Elmaza Kurtanović [SLC] [DevOps Member]143 7th July 2023 0 Comments

QAction calls an async method and gets stuck. I tried canceling the async method using timeout and CancellationToken, but the QAction is still on the stack. Is there any way I can remove it from the stack?


Elmaza Kurtanović [SLC] [DevOps Member] Selected answer as best 10th July 2023

2 Answers

  • Active
  • Voted
  • Newest
  • Oldest
1
Elmaza Kurtanović [SLC] [DevOps Member]143 Posted 10th July 2023 0 Comments

With the help of Floris, this problem seems to have been solved.
At the moment everything looks OK, we will monitor the situation for a few more days.

The solution was to add a CancellationTokenSource with a TimeSpan of 30s and modify the async method call from:

AsyncPump.Run(AsyncMethod, tokenSource.Token)

to:

var t = Task.Factory.StartNew(() => AsyncPump.Run(AsyncMethod, tokenSource.Token), tokenSource.Token, TaskCreationOptions.LongRunning, TaskScheduler.Default);
t.Wait(tokenSource.Token);

Thanks Floris!

Elmaza Kurtanović [SLC] [DevOps Member] Answered question 10th July 2023
You are viewing 1 out of 2 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

© 2025 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