is it possible to use a long_callback or background callback in dash?

ckilduff16
Level 2
is it possible to use a long_callback or background callback in dash?

Hi,

I am trying to use a long_callback or background callback to enable the ability to cancel a callback in a dash webapp. To use one of these methods you need to set up a callback manager using diskcache. I set up the manager and updated the app constructor with the new callback manager and now get the following error. Has anyone used either of these dash methods with in dataiku before or have an idea of what could be happening to cause the error?

OSError: could not get source code

 

-Cameron


Operating system used: Windows

0 Kudos
1 Reply
AlexT
Dataiker

Hi @ckilduff16 ,
The error suggests there was a failure while retrieving the callback function's source code.
Could you share a code snippet of your code it would provide additional clues.

0 Kudos