https://dagster.io/ logo
#ask-community
Title
# ask-community
f

Fabio Picchi

08/09/2023, 9:31 PM
couldn't find easily in the docs nor here in slack. Can anyone explain me how to use
bucket_by
from
context.instance.get_runs
? I'm wondering if it achieves this behavior:
Copy code
context.instance.get_runs(
            filters=[
                RunsFilter(job_name=job_name, tags={"dagster/partition": item["name"]})
                for job_name in ["src_lidar_s0", "src_lidar_s1", "src_lidar_s2", "src_lidar_s3", "src_lidar_full"]
            ],
        )
🤖 1
p

prha

08/09/2023, 10:36 PM
Hi Fabio. This is actually some behavior that we’re deprecating… Just landed https://github.com/dagster-io/dagster/pull/14716 which removes the query support. There’ll be a follow-up PR that deprecates/removes the argument from the
get_runs
method
f

Fabio Picchi

08/10/2023, 11:01 AM
ok! Thanks for the tip 🙂 I had never noticed the argument haha I thought it was something new