Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

WIP: Delegate unsubscribe from events to Tango C++ (PyTango#292) #1091

Closed
wants to merge 1 commit into from

Conversation

reszelaz
Copy link

@reszelaz reszelaz commented Mar 18, 2020

Tango C++ unsubscribe from any subscribed event in the DeviceProxy destructor. As workaround for PyTango#292 do not call unsubscribes in Taurus. Just mark the event type as unsubscribed so eventual event callbacks are ignored in push_event.

This PR is one of the options to workaround tango-controls/pytango#292. It still does not work properly. I found the Sardana testsuite hung in the following situation" no_unsub_bt.txt and no_unsub_py-bt.txt

. I plan to push another option with delegating the unsubscribe to a worker thread.

Tango C++ unsubscribe from any subscribed event in the DeviceProxy destructor.
As workaround for PyTango#292 do not call unsubscribes in Taurus.
Just mark the event type as unsubscribed so eventual event callbacks
are ignored in push_event.
@reszelaz
Copy link
Author

reszelaz commented May 7, 2020

The root issue was solved in tango-controls/cppTango#699.
It is available starting from cppTango 9.3.4rc5. Hence I do not foresee to work anymore on this PR.

@reszelaz reszelaz closed this May 7, 2020
@cpascual cpascual modified the milestones: Jan20, Jul20 May 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants