Heartbeat ignores async actions

Bug #1790397 reported by Vitalii Solodilov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mistral
In Progress
High
Renat Akhmerov

Bug Description

Currently, the heartbeat ignores asynchronous actions when it
extracts expired actions:
https://github.com/openstack/mistral/blob/4a9ceaf47d24218e04c8c573fc144582e8553e73/mistral/db/v2/sqlalchemy/api.py#L1272

In some cases, async action can be stuck in the RUNNING state forever.

Changed in mistral:
assignee: nobody → Vitalii Solodilov (mcdoker18)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to mistral (master)

Fix proposed to branch: master
Review: https://review.openstack.org/599258

Changed in mistral:
status: New → In Progress
Dougal Matthews (d0ugal)
Changed in mistral:
importance: Undecided → High
milestone: none → stein-1
Dougal Matthews (d0ugal)
Changed in mistral:
milestone: stein-1 → stein-2
Revision history for this message
Renat Akhmerov (rakhmerov) wrote :

Please better explain what it all means and why the action heartbeat mechanism should care about asynchronous actions. A 3rd party that processes async actions can't send heartbeats to Mistral.

Changed in mistral:
milestone: stein-2 → stein-3
Changed in mistral:
milestone: stein-3 → train-1
Changed in mistral:
assignee: Vitalii Solodilov (mcdoker18) → nobody
milestone: train-1 → ussuri-1
Changed in mistral:
milestone: ussuri-1 → ussuri-2
assignee: nobody → Renat Akhmerov (rakhmerov)
Revision history for this message
Matt B (matty-brennan) wrote :

If there was a heartbeat endpoint, a 3rd party process could hit it periodically. In our application we have an external service tightly integrated with mistral and would leverage this. Might make sense for the actions to be configurable in that case, since a normal 3rd party with a http callback probably wouldn't use it.

Revision history for this message
Renat Akhmerov (rakhmerov) wrote :

Yes, ok. We've never thought of this heartbeat mechanism as of something visible in the API. But your reasoning makes sense. I think we can extend it for this use case. I'd prefer to have a new BP for this though.

Thanks

Changed in mistral:
milestone: ussuri-2 → ussuri-3
Changed in mistral:
milestone: ussuri-3 → victoria-1
Changed in mistral:
milestone: victoria-1 → wallaby-1
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.