def config_type(cls): """Include all arguments required for DagsterK8sJobConfig along with additional arguments needed for the RunLauncher itself. """ from dagster_celery.executor import CELERY_CONFIG job_cfg = DagsterK8sJobConfig.config_type_run_launcher() run_launcher_extra_cfg = { "load_incluster_config": Field(bool, is_required=False, default_value=True), "kubeconfig_file": Field(Noneable(str), is_required=False, default_value=None), } res = merge_dicts(job_cfg, run_launcher_extra_cfg) return merge_dicts(res, CELERY_CONFIG)
def config_type(cls): from dagster_celery.executor import CELERY_CONFIG return merge_dicts(DagsterK8sJobConfig.config_type_run_launcher(), CELERY_CONFIG)