# ask-community

Andrew Maguire

07/06/2023, 10:13 PM
Hello, i have a question similar (identical really 🙂 ) to this SO from 2020. I think from what i can see that maybe the api has changed or evolved a bit since then so i'm wondering if anyone would have any pointers or if there are any examples or tutorials using more recent versions.
dagster bot responded by community 1
my use case is i want to build some anomaly detection pipelines for batches of metrics. eg you just define some sql for each metric and then dagster handles all ingest, train, score pipelines dynamically, one for each metric. so the sql question in the SO above is a good starter for the ingest part of my pipeline for example.
(i have built an airflow anomaly detection provider that does something similar but now looking to make maybe similar project that does a bit more and uses dagster to orchestrate instead of airflow)


07/06/2023, 11:56 PM
I think the answer would be pretty much the same as the SO answer, except you'd be using @op instead of @solid. In general this pattern is called an op factory

Andrew Maguire

07/07/2023, 6:45 AM
Cool thanks, will try it out.