Hello @ayush19,
Here are some suggestions, but would need to check how are the parameters configured.
Use an Existing Cluster: Instead of creating a new cluster each time, configure the DatabricksSubmitRunOperator to use an existing cluster. This can be done by specifying the existing_cluster_id parameter in the operator. This way, the cluster will not restart, and the jar file will not be reinstalled.
Cluster Configuration: Ensure that the cluster configuration does not force instance replacement upon restart. According to the context, one way to achieve this is by disabling multi-AZ (Availability Zone) selection in the cluster configuration. This can help in reusing the same instances rather than creating new ones