Interrupt RPC function

#1

Dear Colleagues,

As I see in the documentation, there is a capability to report progress from RPC method to caller. That is great, but I am curious is it possible to interrupt that function? Consider the following example: user starts file copy procedure, which is implemented as function called by RPC mechanism. The function reports on progress, and this is fine. Next, user clicks “Cancel” button, I need to interrupt the process, is there special mechanism for this? I can just use some pub/sub queue, but probably there is something intended especially for this?

0 Likes

#2

Dear Colleagues,

As I see in the documentation, there is a capability to report progress
from RPC method to caller. That is great, but I am curious is it possible
to interrupt that function? Consider the following example: user starts

Yes, if the router implements call interruption (WAMP CANCEL message) ..

···

Am 23.03.2017 um 16:32 schrieb Alexander Prokhorov:

file copy procedure, which is implemented as function called by RPC
mechanism. The function reports on progress, and this is fine. Next, user
clicks "Cancel" button, I need to interrupt the process, is there special
mechanism for this? I can just use some pub/sub queue, but probably there
is something intended especially for this?

0 Likes

#3

Thanks Tobias, that is great! Can you please point where to read (documentation or example) how to cancel such RPC request?

···

четверг, 23 марта 2017 г., 19:28:24 UTC+3 пользователь Tobias Oberstein написал:

Am 23.03.2017 um 16:32 schrieb Alexander Prokhorov:

Dear Colleagues,

As I see in the documentation, there is a capability to report progress

from RPC method to caller. That is great, but I am curious is it possible

to interrupt that function? Consider the following example: user starts

Yes, if the router implements call interruption (WAMP CANCEL message) …

file copy procedure, which is implemented as function called by RPC

mechanism. The function reports on progress, and this is fine. Next, user

clicks “Cancel” button, I need to interrupt the process, is there special

mechanism for this? I can just use some pub/sub queue, but probably there

is something intended especially for this?

0 Likes

#4

I am trying to use Crossbar router and client based on Autobahn for Python.

···

четверг, 23 марта 2017 г., 21:01:13 UTC+3 пользователь Alexander Prokhorov написал:

Thanks Tobias, that is great! Can you please point where to read (documentation or example) how to cancel such RPC request?

четверг, 23 марта 2017 г., 19:28:24 UTC+3 пользователь Tobias Oberstein написал:

Am 23.03.2017 um 16:32 schrieb Alexander Prokhorov:

Dear Colleagues,

As I see in the documentation, there is a capability to report progress

from RPC method to caller. That is great, but I am curious is it possible

to interrupt that function? Consider the following example: user starts

Yes, if the router implements call interruption (WAMP CANCEL message) …

file copy procedure, which is implemented as function called by RPC

mechanism. The function reports on progress, and this is fine. Next, user

clicks “Cancel” button, I need to interrupt the process, is there special

mechanism for this? I can just use some pub/sub queue, but probably there

is something intended especially for this?

0 Likes

#5

Meanwhile, it seems I found this here: http://autobahn.readthedocs.io/en/latest/reference/autobahn.wamp.html?highlight=progress#autobahn.wamp.message.Cancel .

···

четверг, 23 марта 2017 г., 21:09:05 UTC+3 пользователь Alexander Prokhorov написал:

I am trying to use Crossbar router and client based on Autobahn for Python.

четверг, 23 марта 2017 г., 21:01:13 UTC+3 пользователь Alexander Prokhorov написал:

Thanks Tobias, that is great! Can you please point where to read (documentation or example) how to cancel such RPC request?

четверг, 23 марта 2017 г., 19:28:24 UTC+3 пользователь Tobias Oberstein написал:

Am 23.03.2017 um 16:32 schrieb Alexander Prokhorov:

Dear Colleagues,

As I see in the documentation, there is a capability to report progress

from RPC method to caller. That is great, but I am curious is it possible

to interrupt that function? Consider the following example: user starts

Yes, if the router implements call interruption (WAMP CANCEL message) …

file copy procedure, which is implemented as function called by RPC

mechanism. The function reports on progress, and this is fine. Next, user

clicks “Cancel” button, I need to interrupt the process, is there special

mechanism for this? I can just use some pub/sub queue, but probably there

is something intended especially for this?

0 Likes