Avri Naamani
04/08/2021, 7:11 AMError: There are no sensors defined for repository...
while running dagster sensor list -d path_to_working_dir/ -f /path_to_pipeline_file.py
I tried to put the sensor function and decorator in a separate file and also in the same file as the pipeline.
When i try to run the same command on the sensor file i get dagster.core.errors.DagsterUserCodeProcessError: dagster.core.errors.DagsterInvariantViolationError: No pipelines or repositories found in "address_enrichment_sensor".
What am i missing here?Avri Naamani
04/08/2021, 7:18 AM@sensor(pipeline_name="address_enrichment")
def my_s3_sensor(context):
new_s3_keys = get_s3_keys("BUCKET", prefix="/raw/", since_key=context.last_run_key)
if not new_s3_keys:
yield SkipReason("No new s3 files found for bucket my_s3_bucket.")
return
for s3_key in new_s3_keys:
yield RunRequest(run_key=s3_key, run_config={})
Rubén Lopez Lozoya
04/08/2021, 7:20 AMAvri Naamani
04/08/2021, 7:39 AM@repository
in the repo.py
filedaniel
04/08/2021, 11:11 AMAvri Naamani
04/08/2021, 1:27 PM