@@ -113,6 +113,7 @@ class TaskConfigFromEnv(TaskConfig):
113113
114114 def __init__ (self ):
115115 self ._destination_project = get_env_config ("PROJECT" , raise_if_empty = True )
116+ self ._execution_project = get_env_config ("EXECUTION_PROJECT" , default = self ._destination_project )
116117 self ._destination_dataset = get_env_config ("DATASET" , raise_if_empty = True )
117118 self ._destination_table_name = get_env_config ("TABLE" , raise_if_empty = True )
118119 self ._sql_type = get_env_config ("SQL_TYPE" , raise_if_empty = True )
@@ -126,6 +127,10 @@ def __init__(self):
126127 def destination_project (self ) -> str :
127128 return self ._destination_project
128129
130+ @property
131+ def execution_project (self ) -> str :
132+ return self ._execution_project
133+
129134 @property
130135 def destination_dataset (self ) -> str :
131136 return self ._destination_dataset
@@ -313,6 +318,7 @@ def __init__(self, raw_properties):
313318
314319 self ._destination_table_name = _validate_not_empty (self ._get_property ("TABLE" ))
315320 self ._destination_project = _validate_not_empty (self ._get_property ("PROJECT" ))
321+ self ._execution_project = _validate_not_empty (self ._get_property_or_default ("EXECUTION_PROJECT" , self ._destination_project ))
316322 self ._destination_dataset = _validate_not_empty (self ._get_property ("DATASET" ))
317323
318324 self ._window_size = _validate_window_size (self ._get_property ("WINDOW_SIZE" ))
@@ -338,6 +344,10 @@ def destination_dataset(self):
338344 def destination_project (self ):
339345 return self ._destination_project
340346
347+ @property
348+ def execution_project (self ):
349+ return self ._execution_project
350+
341351 @property
342352 def destination_table_name (self ):
343353 return self ._destination_table_name
0 commit comments