ripe-gigabyte-88964
04/25/2023, 5:03 PMwitty-crayon-22786
04/25/2023, 5:12 PMrule_runner.request
will have access to subsystems required by the @rules
you are running.witty-crayon-22786
04/25/2023, 5:13 PMhappy-kitchen-89482
04/25/2023, 5:20 PMrule_runner.request
ripe-gigabyte-88964
04/25/2023, 5:24 PME ValueError: Encountered 7 rule graph errors:
E No installed rules return the type DagsterLocationConfigFieldSet, and it was not provided by potential callers of @rule(plugins.dagster.goals:65:package_locations(DagsterLocationConfigFieldSet, DagsterSubsystem, UnionMembership, DistDir) -> BuiltPackage, gets=[Get(Digest, [PathGlobs]), Get(DigestContents, [Digest]), Get(Digest, [CreateDigest])]).
E If that type should be computed by a rule, ensure that that rule is installed.
E If it should be provided by a caller, ensure that it is included in any relevant Query or Get.
E No installed rules return the type DistDir, and it was not provided by potential callers of @rule(plugins.dagster.goals:65:package_locations(DagsterLocationConfigFieldSet, DagsterSubsystem, UnionMembership, DistDir) -> BuiltPackage, gets=[Get(Digest, [PathGlobs]), Get(DigestContents, [Digest]), Get(Digest, [CreateDigest])]).
E If that type should be computed by a rule, ensure that that rule is installed.
E If it should be provided by a caller, ensure that it is included in any relevant Query or Get.
E No source of dependency DagsterSubsystem for @rule(plugins.dagster.goals:65:package_locations(DagsterLocationConfigFieldSet, DagsterSubsystem, UnionMembership, DistDir) -> BuiltPackage, gets=[Get(Digest, [PathGlobs]), Get(DigestContents, [Digest]), Get(Digest, [CreateDigest])]). All potential sources were eliminated: []
E No source of dependency Get(Digest, [CreateDigest]) for @rule(plugins.dagster.goals:65:package_locations(DagsterLocationConfigFieldSet, DagsterSubsystem, UnionMembership, DistDir) -> BuiltPackage, gets=[Get(Digest, [PathGlobs]), Get(DigestContents, [Digest]), Get(Digest, [CreateDigest])]). All potential sources were eliminated: []
E No source of dependency Get(Digest, [PathGlobs]) for @rule(plugins.dagster.goals:65:package_locations(DagsterLocationConfigFieldSet, DagsterSubsystem, UnionMembership, DistDir) -> BuiltPackage, gets=[Get(Digest, [PathGlobs]), Get(DigestContents, [Digest]), Get(Digest, [CreateDigest])]). All potential sources were eliminated: []
E No source of dependency Get(DigestContents, [Digest]) for @rule(plugins.dagster.goals:65:package_locations(DagsterLocationConfigFieldSet, DagsterSubsystem, UnionMembership, DistDir) -> BuiltPackage, gets=[Get(Digest, [PathGlobs]), Get(DigestContents, [Digest]), Get(Digest, [CreateDigest])]). All potential sources were eliminated: []
E No source of dependency UnionMembership for @rule(plugins.dagster.goals:65:package_locations(DagsterLocationConfigFieldSet, DagsterSubsystem, UnionMembership, DistDir) -> BuiltPackage, gets=[Get(Digest, [PathGlobs]), Get(DigestContents, [Digest]), Get(Digest, [CreateDigest])]). All potential sources were eliminated: []
Do I need the full list of params for the QueryRule
or just what I'm going to pass the rule_runner.request
?ripe-gigabyte-88964
04/25/2023, 5:24 PMwitty-crayon-22786
04/25/2023, 5:26 PM*DagsterSubsystem.rules()
to the list of rules you construct the RuleRunner with.ripe-gigabyte-88964
04/25/2023, 5:27 PMrule_runner = RuleRunner(
target_types=[DagsterLocationConfigTarget],
rules=[*dagster_goal_rules(), *dagster_subsystem_rules(), QueryRule(BuiltPackage, [DagsterLocationConfigFieldSet])]
)
ripe-gigabyte-88964
04/25/2023, 5:28 PM@rule
async def package_locations(
field_set: DagsterLocationConfigFieldSet,
dagster_subsystem: DagsterSubsystem,
union_membership: UnionMembership,
dist_dir: DistDir,
) -> BuiltPackage:
witty-crayon-22786
04/25/2023, 5:30 PMpants.core.util_rules.distdir
, if dagster_goal_rules
doesn’t already include themripe-gigabyte-88964
04/25/2023, 5:35 PMripe-gigabyte-88964
04/25/2023, 8:15 PM