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

Yusuf Shalaby

06/08/2023, 9:00 PM
Hello! I am playing around with dynamic partitions. The following code does not work in dagster dev:
Copy code
from dagster import DynamicPartitionsDefinition

partitions_def = DynamicPartitionsDefinition(name="example")
existing_keys = partitions_def.get_partition_keys()
I wanted to use the
get_partition_keys
method in my sensor to reconcile the existing partitions with the actual partitions. Here is the error code:
dagster._check.CheckError: Failure condition: The instance is not available to load partitions. You may be seeing this error when using dynamic partitions with a version of dagit or dagster-cloud that is older than 1.1.18.
I am running the latest versions of dagster and dagit (1.3.9).
s

sandy

06/08/2023, 9:15 PM
Hey Yusuf: I wrote an answer for this: https://github.com/dagster-io/dagster/discussions/14715
y

Yusuf Shalaby

06/09/2023, 1:24 PM
Thanks for the quick reply 🙂
106 Views