def terminate_cluster(**kwargs): ti = kwargs['ti'] cluster_id = ti.xcom_pull(task_ids='create_cluster') EmrClusterController.terminate_cluster(cluster_id)
def terminate_cluster(cluster_id): EmrClusterController.terminate_cluster(cluster_id)
def terminate_cluster(**kwargs): ti = kwargs['ti'] cluster_id = ti.xcom_pull(task_ids='create_cluster') EmrClusterController.terminate_cluster(cluster_id)
def terminate_cluster(cluster_id): EmrClusterController.terminate_cluster(cluster_id)