Skip to main content

Using Legacy Threads

If you are still using the legacy abstra.workflows SDK, you can update your abstra version and everything will be migrated automatically.

The function use_legacy_threads can be called in the beginning of each of your stages code to enable compatibility. 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

# Your code here