4141 SFTPTransferDTO ,
4242 WebDAVTransferDTO ,
4343)
44+ from syncmaster .dto .transfers_resources import Resources
4445from syncmaster .dto .transfers_strategy import Strategy
4546from syncmaster .exceptions .connection import ConnectionTypeNotRecognizedError
4647from syncmaster .schemas .v1 .connection_types import FILE_CONNECTION_TYPES
@@ -169,6 +170,7 @@ def __init__(
169170 transfer_id = run .transfer .id ,
170171 transfer_params = run .transfer .source_params ,
171172 strategy_params = run .transfer .strategy_params ,
173+ resources = run .transfer .resources ,
172174 transformations = run .transfer .transformations ,
173175 connection_auth_data = source_auth_data ,
174176 temp_dir = TemporaryDirectory (dir = self .temp_dir .name , prefix = "downloaded_" ),
@@ -179,6 +181,7 @@ def __init__(
179181 transfer_id = run .transfer .id ,
180182 transfer_params = run .transfer .target_params ,
181183 strategy_params = run .transfer .strategy_params ,
184+ resources = run .transfer .resources ,
182185 transformations = run .transfer .transformations ,
183186 connection_auth_data = target_auth_data ,
184187 temp_dir = TemporaryDirectory (dir = self .temp_dir .name , prefix = "written_" ),
@@ -215,6 +218,7 @@ def get_handler(
215218 transfer_id : int ,
216219 transfer_params : dict [str , Any ],
217220 strategy_params : dict [str , Any ],
221+ resources : dict [str , Any ],
218222 transformations : list [dict ],
219223 temp_dir : TemporaryDirectory ,
220224 ) -> Handler :
@@ -232,6 +236,7 @@ def get_handler(
232236 transfer_dto = transfer_dto (
233237 id = transfer_id ,
234238 strategy = Strategy .from_dict (strategy_params ),
239+ resources = Resources (** resources ),
235240 transformations = transformations ,
236241 ** transfer_params ,
237242 ),
0 commit comments