Closed raphaelauv closed 2 months ago
I'll take a look.
thanks @ellisms
also the connector do not fail if creds are incorrect or there is missing conf like endpoint_url ( example when using minio )
I think it looks fine other Sensor, something like databricks, mongo, redis work same as S3. they made their own hooks in poke method. if it is wrong, we should change whold sensor :)
It's S3keySensor not S3CredsSensor.
It's about checking if data is present or not in the bucket . soft_fail means and only means in case of timeout and no data then the operator is skipped.
I understood, thankyou for your explanation. I miss understood purpose of soft_fail. https://github.com/apache/airflow/pull/33401 I think this PR make this side effect thankyou again raphaelauv
@Seoji yes the problem come from this PR , using the parameter soft_fail
to skip any exception in the BaseSensor class was not a good idea.
Every operator should manage itself the soft_fail
parameter OR we must introduce another parameter for the case were an user want to skip no matter the exception
wdyt @Lee-W ?
As soft_fail
is part of the BaseSensor
and can be handled as a whole, I think it would still be better if we could handle it there. The current description of it is soft_fail – Set to true to mark the task as SKIPPED on failure
We should probably introduce a new parameter for special cases. If most of the sensors aren't supposed to work the current soft_fail
way, then maybe we should start the discussion on whether to keep soft_fail
in BaseSensor
.
@potiuk could you please re-open the issue , since PR was reverted , thanks
Did.
This issue has been automatically marked as stale because it has been open for 14 days with no response from the author. It will be closed in next 7 days if no further activity occurs from the issue author.
No stale
This issue has been automatically marked as stale because it has been open for 14 days with no response from the author. It will be closed in next 7 days if no further activity occurs from the issue author.
This issue has been closed because it has not received response from the issue author.
Apache Airflow version
2.9.2
What happened?
S3KeySensor with soft_fail is not failing on configuration errors (missing credentials or airflow connection )
What you think should happen instead?
S3KeySensor with soft_fail should fail on missing configuration and only skip on missing S3 data
How to reproduce
Are you willing to submit PR?
Code of Conduct