diff --git a/docs/content/api/modules.json.gz b/docs/content/api/modules.json.gz index 06ccaae0e6374..8b6d7eef297cc 100644 Binary files a/docs/content/api/modules.json.gz and b/docs/content/api/modules.json.gz differ diff --git a/docs/content/api/searchindex.json.gz b/docs/content/api/searchindex.json.gz index baa41aa919c4f..e5cd77e15a6d3 100644 Binary files a/docs/content/api/searchindex.json.gz and b/docs/content/api/searchindex.json.gz differ diff --git a/docs/content/api/sections.json.gz b/docs/content/api/sections.json.gz index 951a54a553360..e4261752b4208 100644 Binary files a/docs/content/api/sections.json.gz and b/docs/content/api/sections.json.gz differ diff --git a/docs/next/public/objects.inv b/docs/next/public/objects.inv index 95e299330b810..d9e1537489ec5 100644 Binary files a/docs/next/public/objects.inv and b/docs/next/public/objects.inv differ diff --git a/python_modules/dagster/dagster/_core/definitions/decorators/schedule_decorator.py b/python_modules/dagster/dagster/_core/definitions/decorators/schedule_decorator.py index c4d2b6302f951..5dd71bf7a82e1 100644 --- a/python_modules/dagster/dagster/_core/definitions/decorators/schedule_decorator.py +++ b/python_modules/dagster/dagster/_core/definitions/decorators/schedule_decorator.py @@ -102,6 +102,9 @@ def schedule( required_resource_keys (Optional[Set[str]]): The set of resource keys required by the schedule. target (Optional[Union[CoercibleToAssetSelection, AssetsDefinition, JobDefinition, UnresolvedAssetJobDefinition]]): The target that the schedule will execute. + It can take :py:class:`~dagster.AssetSelection` objects and anything coercible to it (e.g. `str`, `Sequence[str]`, `AssetKey`, `AssetsDefinition`). + It can also accept :py:class:`~dagster.JobDefinition` (a function decorated with `@job` is an instance of `JobDefinition`) and `UnresolvedAssetJobDefinition` (the return value of :py:func:`~dagster.define_asset_job`) objects. + This is an experimental parameter that will replace `job` and `job_name`. """ def inner(fn: RawScheduleEvaluationFunction) -> ScheduleDefinition: diff --git a/python_modules/dagster/dagster/_core/definitions/decorators/sensor_decorator.py b/python_modules/dagster/dagster/_core/definitions/decorators/sensor_decorator.py index 05a69ff6fd137..16b81219631c8 100644 --- a/python_modules/dagster/dagster/_core/definitions/decorators/sensor_decorator.py +++ b/python_modules/dagster/dagster/_core/definitions/decorators/sensor_decorator.py @@ -83,6 +83,9 @@ def sensor( This can be provided instead of specifying a job. target (Optional[Union[CoercibleToAssetSelection, AssetsDefinition, JobDefinition, UnresolvedAssetJobDefinition]]): The target that the sensor will execute. + It can take :py:class:`~dagster.AssetSelection` objects and anything coercible to it (e.g. `str`, `Sequence[str]`, `AssetKey`, `AssetsDefinition`). + It can also accept :py:class:`~dagster.JobDefinition` (a function decorated with `@job` is an instance of `JobDefinition`) and `UnresolvedAssetJobDefinition` (the return value of :py:func:`~dagster.define_asset_job`) objects. + This is an experimental parameter that will replace `job`, `jobs`, and `asset_selection`. """ check.opt_str_param(name, "name") diff --git a/python_modules/dagster/dagster/_core/definitions/schedule_definition.py b/python_modules/dagster/dagster/_core/definitions/schedule_definition.py index dd194311ceb22..60cf4325ab9b8 100644 --- a/python_modules/dagster/dagster/_core/definitions/schedule_definition.py +++ b/python_modules/dagster/dagster/_core/definitions/schedule_definition.py @@ -524,6 +524,9 @@ class ScheduleDefinition(IHasInternalInit): required_resource_keys (Optional[Set[str]]): The set of resource keys required by the schedule. target (Optional[Union[CoercibleToAssetSelection, AssetsDefinition, JobDefinition, UnresolvedAssetJobDefinition]]): The target that the schedule will execute. + It can take :py:class:`~dagster.AssetSelection` objects and anything coercible to it (e.g. `str`, `Sequence[str]`, `AssetKey`, `AssetsDefinition`). + It can also accept :py:class:`~dagster.JobDefinition` (a function decorated with `@job` is an instance of `JobDefinition`) and `UnresolvedAssetJobDefinition` (the return value of :py:func:`~dagster.define_asset_job`) objects. + This is an experimental parameter that will replace `job` and `job_name`. """ def with_updated_job(self, new_job: ExecutableDefinition) -> "ScheduleDefinition": diff --git a/python_modules/dagster/dagster/_core/definitions/sensor_definition.py b/python_modules/dagster/dagster/_core/definitions/sensor_definition.py index dc722b8b60791..009c2d717e1c9 100644 --- a/python_modules/dagster/dagster/_core/definitions/sensor_definition.py +++ b/python_modules/dagster/dagster/_core/definitions/sensor_definition.py @@ -570,6 +570,9 @@ class SensorDefinition(IHasInternalInit): This can be provided instead of specifying a job. target (Optional[Union[CoercibleToAssetSelection, AssetsDefinition, JobDefinition, UnresolvedAssetJobDefinition]]): The target that the sensor will execute. + It can take :py:class:`~dagster.AssetSelection` objects and anything coercible to it (e.g. `str`, `Sequence[str]`, `AssetKey`, `AssetsDefinition`). + It can also accept :py:class:`~dagster.JobDefinition` (a function decorated with `@job` is an instance of `JobDefinition`) and `UnresolvedAssetJobDefinition` (the return value of :py:func:`~dagster.define_asset_job`) objects. + This is an experimental parameter that will replace `job`, `jobs`, and `asset_selection`. """ def with_updated_jobs(self, new_jobs: Sequence[ExecutableDefinition]) -> "SensorDefinition":