@@ -205,23 +205,23 @@ pub mod versioned {
205205 #[ serde( default ) ]
206206 pub cluster_operation : ClusterOperation ,
207207
208- /// The `webserver ` role provides the main UI for user interaction.
208+ /// The `webservers ` role provides the main UI for user interaction.
209209 #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
210210 pub webservers : Option < Role < AirflowConfigFragment , v1alpha1:: WebserverRoleConfig > > ,
211211
212- /// The `scheduler ` is responsible for triggering jobs and persisting their metadata to the backend database.
212+ /// The `schedulers ` is responsible for triggering jobs and persisting their metadata to the backend database.
213213 /// Jobs are scheduled on the workers/executors.
214214 #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
215215 pub schedulers : Option < Role < AirflowConfigFragment > > ,
216216
217217 #[ serde( flatten) ]
218218 pub executor : AirflowExecutor ,
219219
220- /// The `processor ` role runs the DAG processor routine for DAG preparation.
220+ /// The `dagProcessors ` role runs the DAG processor routine for DAG preparation.
221221 #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
222- pub processors : Option < Role < AirflowConfigFragment > > ,
222+ pub dag_processors : Option < Role < AirflowConfigFragment > > ,
223223
224- /// The `triggerer ` role runs the triggerer process for use with deferrable DAG operators.
224+ /// The `triggerers ` role runs the triggerer process for use with deferrable DAG operators.
225225 #[ serde( default , skip_serializing_if = "Option::is_none" ) ]
226226 pub triggerers : Option < Role < AirflowConfigFragment > > ,
227227 }
@@ -352,7 +352,7 @@ impl v1alpha1::AirflowCluster {
352352 AirflowRole :: Webserver => Some ( role_service_name ( & self . name_any ( ) , & role. to_string ( ) ) ) ,
353353 AirflowRole :: Scheduler
354354 | AirflowRole :: Worker
355- | AirflowRole :: Processor
355+ | AirflowRole :: DagProcessor
356356 | AirflowRole :: Triggerer => None ,
357357 }
358358 }
@@ -367,7 +367,7 @@ impl v1alpha1::AirflowCluster {
367367 . to_owned ( )
368368 . map ( extract_role_from_webserver_config) ,
369369 AirflowRole :: Scheduler => self . spec . schedulers . to_owned ( ) ,
370- AirflowRole :: Processor => self . spec . processors . to_owned ( ) ,
370+ AirflowRole :: DagProcessor => self . spec . dag_processors . to_owned ( ) ,
371371 AirflowRole :: Triggerer => self . spec . triggerers . to_owned ( ) ,
372372 AirflowRole :: Worker => {
373373 if let AirflowExecutor :: CeleryExecutor { config } = & self . spec . executor {
@@ -429,9 +429,9 @@ impl v1alpha1::AirflowCluster {
429429 roles : AirflowRole :: roles ( ) ,
430430 } ) ?
431431 }
432- AirflowRole :: Processor => {
432+ AirflowRole :: DagProcessor => {
433433 self . spec
434- . processors
434+ . dag_processors
435435 . as_ref ( )
436436 . context ( UnknownAirflowRoleSnafu {
437437 role : role. to_string ( ) ,
@@ -596,8 +596,8 @@ pub enum AirflowRole {
596596 #[ strum( serialize = "worker" ) ]
597597 Worker ,
598598
599- #[ strum( serialize = "processor " ) ]
600- Processor ,
599+ #[ strum( serialize = "dagprocessor " ) ]
600+ DagProcessor ,
601601
602602 #[ strum( serialize = "triggerer" ) ]
603603 Triggerer ,
@@ -664,16 +664,16 @@ impl AirflowRole {
664664 container_debug_command( ) ,
665665 "airflow scheduler &" . to_string( ) ,
666666 ] ) ;
667- if airflow. spec . processors . is_none ( ) {
668- // If no processors role has been specified, the
667+ if airflow. spec . dag_processors . is_none ( ) {
668+ // If no dag_processors role has been specified, the
669669 // process needs to be included with the scheduler
670670 // (with 3.x there is no longer the possibility of
671671 // starting it as a subprocess, so it has to be
672672 // explicitly started *somewhere*)
673673 command. extend ( vec ! [ "airflow dag-processor &" . to_string( ) ] ) ;
674674 }
675675 }
676- AirflowRole :: Processor => command. extend ( vec ! [
676+ AirflowRole :: DagProcessor => command. extend ( vec ! [
677677 "prepare_signal_handlers" . to_string( ) ,
678678 container_debug_command( ) ,
679679 "airflow dag-processor &" . to_string( ) ,
@@ -725,7 +725,7 @@ impl AirflowRole {
725725 "airflow scheduler &" . to_string( ) ,
726726 ] ) ;
727727 }
728- AirflowRole :: Processor => command. extend ( vec ! [
728+ AirflowRole :: DagProcessor => command. extend ( vec ! [
729729 "prepare_signal_handlers" . to_string( ) ,
730730 container_debug_command( ) ,
731731 "airflow dag-processor &" . to_string( ) ,
@@ -791,7 +791,7 @@ impl AirflowRole {
791791 AirflowRole :: Webserver => Some ( HTTP_PORT ) ,
792792 AirflowRole :: Scheduler => None ,
793793 AirflowRole :: Worker => None ,
794- AirflowRole :: Processor => None ,
794+ AirflowRole :: DagProcessor => None ,
795795 AirflowRole :: Triggerer => None ,
796796 }
797797 }
@@ -811,7 +811,7 @@ impl AirflowRole {
811811 . webservers
812812 . to_owned ( )
813813 . map ( |webserver| webserver. role_config . listener_class ) ,
814- Self :: Worker | Self :: Scheduler | Self :: Processor | Self :: Triggerer => None ,
814+ Self :: Worker | Self :: Scheduler | Self :: DagProcessor | Self :: Triggerer => None ,
815815 }
816816 }
817817}
@@ -949,7 +949,7 @@ impl AirflowConfig {
949949 graceful_shutdown_timeout : Some ( match role {
950950 AirflowRole :: Webserver
951951 | AirflowRole :: Scheduler
952- | AirflowRole :: Processor
952+ | AirflowRole :: DagProcessor
953953 | AirflowRole :: Triggerer => DEFAULT_AIRFLOW_GRACEFUL_SHUTDOWN_TIMEOUT ,
954954 AirflowRole :: Worker => DEFAULT_WORKER_GRACEFUL_SHUTDOWN_TIMEOUT ,
955955 } ) ,
@@ -1023,7 +1023,7 @@ fn default_resources(role: &AirflowRole) -> ResourcesFragment<AirflowStorageConf
10231023 runtime_limits : NoRuntimeLimitsFragment { } ,
10241024 } ,
10251025 ) ,
1026- AirflowRole :: Processor => (
1026+ AirflowRole :: DagProcessor => (
10271027 CpuLimitsFragment {
10281028 min : Some ( Quantity ( "1" . to_owned ( ) ) ) ,
10291029 max : Some ( Quantity ( "2" . to_owned ( ) ) ) ,
0 commit comments