Last active
April 11, 2017 17:19
-
-
Save RobGThai/42eba4c73f78ee48c9c92e76231ac42f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Apr 11 22:46:10 tdc-ops-swf-02 account-server: ERROR __call__ error with PUT /sde/3306/AUTH_abcdefghi12345/PRD_20170411_M : LockTimeout (3s) /srv/node/sde/accounts/3306/ae2/cead29b1808e23f8c1668c5abe1f8ae2/.lock (txn: txf5dc7a70c023432caf6c3-0058ecfa3f) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def upload(self, container_name, treasures): | |
""" | |
Upload file to specify container. | |
:param container_name: Fullpath to the folder to store the objects in. | |
Started at container. | |
:param objects_to_upload: A list of treasure to upload. | |
:returns: List of ChestResult objects each represent | |
the result of an upload. | |
""" | |
upload_result = self.service.upload( | |
container_name, | |
[SwiftUploadObject(source=it.source, object_name=it.object_name) | |
for it in treasures]) | |
return self.convert_result_list( | |
self.populate_result, | |
upload_result, | |
ChestResult.action_upload_object) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment