:param client: The client associated with the transfer manager :type config: s3transfer.manager.TransferConfig :param config: The transfer config associated with the transfer manager :type osutil: s3transfer.utils.OSUtil :param osutil: The os ut
(
self,
client,
config,
osutil,
request_executor,
transfer_future,
bandwidth_limiter=None,
)
| 565 | ) |
| 566 | |
| 567 | def _submit( |
| 568 | self, |
| 569 | client, |
| 570 | config, |
| 571 | osutil, |
| 572 | request_executor, |
| 573 | transfer_future, |
| 574 | bandwidth_limiter=None, |
| 575 | ): |
| 576 | """ |
| 577 | :param client: The client associated with the transfer manager |
| 578 | |
| 579 | :type config: s3transfer.manager.TransferConfig |
| 580 | :param config: The transfer config associated with the transfer |
| 581 | manager |
| 582 | |
| 583 | :type osutil: s3transfer.utils.OSUtil |
| 584 | :param osutil: The os utility associated to the transfer manager |
| 585 | |
| 586 | :type request_executor: s3transfer.futures.BoundedExecutor |
| 587 | :param request_executor: The request executor associated with the |
| 588 | transfer manager |
| 589 | |
| 590 | :type transfer_future: s3transfer.futures.TransferFuture |
| 591 | :param transfer_future: The transfer future associated with the |
| 592 | transfer request that tasks are being submitted for |
| 593 | """ |
| 594 | upload_input_manager = self._get_upload_input_manager_cls( |
| 595 | transfer_future |
| 596 | )(osutil, self._transfer_coordinator, bandwidth_limiter) |
| 597 | |
| 598 | # Determine the size if it was not provided |
| 599 | if transfer_future.meta.size is None: |
| 600 | upload_input_manager.provide_transfer_size(transfer_future) |
| 601 | |
| 602 | # Do a multipart upload if needed, otherwise do a regular put object. |
| 603 | if not upload_input_manager.requires_multipart_upload( |
| 604 | transfer_future, config |
| 605 | ): |
| 606 | self._submit_upload_request( |
| 607 | client, |
| 608 | config, |
| 609 | osutil, |
| 610 | request_executor, |
| 611 | transfer_future, |
| 612 | upload_input_manager, |
| 613 | ) |
| 614 | else: |
| 615 | self._submit_multipart_request( |
| 616 | client, |
| 617 | config, |
| 618 | osutil, |
| 619 | request_executor, |
| 620 | transfer_future, |
| 621 | upload_input_manager, |
| 622 | ) |
| 623 | |
| 624 | def _submit_upload_request( |
nothing calls this directly
no test coverage detected