Skip to content

Failed subscription behavior, recovering from a failed subscriptions, monitoring health of subscriptions #1437

Answered by kj4tmp
kj4tmp asked this question in Q&A
Discussion options

You must be logged in to vote

i was able to detect the dead publish task and recover with:

if not client.uaclient._publish_task or client.uaclient._publish_task.done():
      print('detected dead publish task, rebuilding...')
      subscription = await client.create_subscription(params, handler)
      await subscription.subscribe_data_change(node, queuesize=0, sampling_interval=-1)

Replies: 3 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@kj4tmp
Comment options

@schroeder-
Comment options

@kj4tmp
Comment options

Comment options

You must be logged in to vote
1 reply
@kj4tmp
Comment options

Answer selected by kj4tmp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants