Example 8: Resume a Previously Interrupted Feature Process using Filter Manager - Teradata Package for Python

Teradata® Package for Python User Guide

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Teradata Package for Python
Release Number
20.00
Published
March 2025
ft:locale
en-US
ft:lastEdition
2026-08-13
dita:mapPath
nvi1706202040305.ditamap
dita:ditavalPath
plt1683835213376.ditaval
dita:id
rkb1531260709148
Product Category
Teradata Vantage

For this example, assume the feature process run in example 7 got interrupted after processing filter_id=2.

Resume the process for remaining filter_id's in the filter manager.

>>> fp = FeatureProcess(repo="vfs_v1",
...                     data_domain='sales',
...                     object=df2,
...                     entity='id',
...                     features=['masters', 'gpa', 'stats', 'admitted'])
>>> fp.run(filter_manager=fm, resume=True)
Process '07741d30-4d47-11f1-a487-cf2ce15f3444' started.
Resume enabled for ingesting features with FilterManager 'stats_filter_manager'
Resuming from filter_id=3, last completed filter_id=2.
Ingesting the features for filter_id=3: {"stats":"Novice"} to catalog.
Process '07741d30-4d47-11f1-a487-cf2ce15f3444' completed.
True

In case all the features are ingested successfully and resume is set to True.

>>> fp = FeatureProcess(repo="vfs_v1",
...                     data_domain='sales',
...                     object=df2,
...                     entity='id',
...                     features=['masters', 'gpa', 'stats', 'admitted'])
>>> fp.run(filter_manager=fm, resume=True)
Process '07741d30-4d47-11f1-a487-cf2ce15f3444' started.
Resume enabled for ingesting features with FilterManager 'stats_filter_manager'.
All features are already ingested in catalog.
Process '07741d30-4d47-11f1-a487-cf2ce15f3444' completed.
True