Kevin Haynes
05/19/2022, 3:41 PMprocessed/
folder, then I want to run my_job
and give it the name of a SQL script to run. The idea is that we may want to run different scripts depending on the file, but I haven't set that part up yet. When a file is processed, an op copies that file into a processed/
folder in the same S3 bucket, thus why I want to yield a SkipReason for those files as well.
When I turn on this sensor, I'm getting the following error:
dagster.check.CheckError: Failure condition: Expected a single SkipReason or one or more RunRequests: received both RunRequest and SkipReason
I'll add the sensor definition in thread (slightly altered to hide my bucket name)Stephen Bailey
05/19/2022, 4:58 PMSkipReason
, and the next key to pass all filters and yield a RunRequest
.if any(passes_checks(x) for x in new_s3_keys): ...
and have that return your runrequestKevin Haynes
05/19/2022, 7:18 PMStephen Bailey
05/19/2022, 7:40 PMSkipReason
is really just for the sensors UI, so you wouldn't actually be seeing anything anywayKevin Haynes
05/20/2022, 2:19 AM