xs2tarunkukreja opened a new issue, #35395:
URL: https://github.com/apache/airflow/issues/35395
### Apache Airflow version
2.7.2
### What happened
I am using following code to launch PySpark Job:-
t1 = SparkKubernetesOperator(
task_id='env-check',
namespace="spark-operator",
application_file='pipeline.yaml',
do_xcom_push=True,
dag=dag,
)
t2 = SparkKubernetesSensor(
task_id='env_app_monitor',
namespace="spark-operator",
attach_log=True,
application_name="{{
task_instance.xcom_pull(task_ids='env-check')['metadata']['name'] }}",
dag=dag,
)
When I launched it first time, it works fine but on future run, it is
failing.
### What you think should happen instead
It should run PySpark Job in all future runs.
### How to reproduce
Just run a Spark Application twice.
### Operating System
K8S
### Versions of Apache Airflow Providers
2.7.2
### Deployment
Official Apache Airflow Helm Chart
### Deployment details
_No response_
### Anything else
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [X] I agree to follow this project's [Code of
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
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]