use_legacy_threads
If you are still using the old abstra.workflows
SDK, you can update your abstra version and everything will be migrated automatically.
There is a function, use_legacy_threads
, that can be called in the beginning of each of your stages code that will replace the abstra.workflows
SDK by the abstra.tasks
, allowing your code to run just as before.
from abstra.compat import use_legacy_threads
use_legacy_threads('forms') # or 'scripts', 'hooks' or 'jobs', depending on the stage
from abstra.workflows import get_data
# Rest of your code