jayamanikharyono opened a new pull request, #69382:
URL: https://github.com/apache/airflow/pull/69382
<!-- SPDX-License-Identifier: Apache-2.0
https://www.apache.org/licenses/LICENSE-2.0 -->
Add a `skip_on_conflict` option to `TableauOperator` to allow Tableau
`409093 Resource Conflict` errors to be treated as skipped instead of failed.
A `409093` error indicates that a refresh or task run for the same resource
has already been queued or is currently running. In these cases, failing the
task may not be desirable, especially for overlapping schedules or retries
where the requested operation is already in progress.
When `skip_on_conflict=True`, the operator raises `AirflowSkipException` for
`409093` responses. Otherwise, the existing behavior is preserved. The option
defaults to `False` to maintain backward compatibility.
This behavior applies to both supported Tableau operations:
- `method="refresh"` for datasources and workbooks
- `method="run"` for tasks
---
Supporting docs :
-
https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_concepts_errors.htm
-
https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref_data_sources.htm#update_data_source
-
https://help.tableau.com/current/api/rest_api/en-us/REST/rest_api_ref_data_sources.htm#update_data_source_now
---
##### Was generative AI tooling used to co-author this PR?
- [ ] Yes (please specify the tool below)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]