Notify callee to stop long running computation (progress notification)

#1

Hi,

for some long running processes I’m using progress notification (JS calling Python with {receive_progress: true}).

In some cases, because of user interaction, the caller is not interested anymore in the progress, nor in the call result.

Is there a built-in mechanism to notify the callee (Python) to stop the, now useless, long computation? (hence saving resources)

Thanks,

Raffaele

0 Likes

#2

After some googling I found:
https://github.com/tavendo/WAMP/blob/master/spec/advanced/call-canceling.md

I’ll wait for it to be implemented in crossbar.

Thanks :),

Raffaele

···

On Tuesday, September 22, 2015 at 12:41:10 PM UTC+2, Raffaele Bianco wrote:

Hi,

for some long running processes I’m using progress notification (JS calling Python with {receive_progress: true}).

In some cases, because of user interaction, the caller is not interested anymore in the progress, nor in the call result.

Is there a built-in mechanism to notify the callee (Python) to stop the, now useless, long computation? (hence saving resources)

Thanks,

Raffaele

0 Likes