โœŠ๐Ÿฟ Black Lives Matter. Please consider donating to Black Girls Code today.
๐Ÿ“Š Dash 2.0 is Arriving. Register here.

How to terminate long computation in a callback function

Dear all,

I am a new one for using Dash. I am trying to run a long computation in a callback function. Is any solution can terminate a long process before finishing?

Use case:

  1. user clicks button to run a long process in a callback function.
  2. before finished, user thinks the computation is too long so as to terminate it by another button.

Can this use case implement it? thank you. :smiley:

Best regards,

@Ricky66 - Lucky timing! Weโ€™re actually working on a prototype for this functionality in โ€œdash-labsโ€ (our package for prototypes and prereleases). See ๐Ÿ“ฃ Dash Labs 0.3.0: @app.long_callback support - #6 by skiefer and give it a try!

Hello @chriddyp,

Thanks for the information quickly. I will give it try.
If I have a use case problem, could I still query you?

Best regards,