Closed BryanFauble closed 4 days ago
Hello @BryanFauble! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
synapseclient/api/entity_factory.py
:Line 86:89: E501 line too long (110 > 88 characters) Line 204:89: E501 line too long (91 > 88 characters) Line 205:89: E501 line too long (100 > 88 characters) Line 331:89: E501 line too long (93 > 88 characters) Line 345:89: E501 line too long (93 > 88 characters) Line 365:89: E501 line too long (97 > 88 characters) Line 366:89: E501 line too long (92 > 88 characters) Line 381:89: E501 line too long (95 > 88 characters) Line 382:89: E501 line too long (101 > 88 characters) Line 383:89: E501 line too long (90 > 88 characters)
synapseclient/core/download/download_functions.py
:Line 185:89: E501 line too long (101 > 88 characters) Line 195:89: E501 line too long (101 > 88 characters) Line 196:89: E501 line too long (110 > 88 characters) Line 202:89: E501 line too long (89 > 88 characters) Line 224:89: E501 line too long (104 > 88 characters) Line 247:89: E501 line too long (101 > 88 characters) Line 248:89: E501 line too long (102 > 88 characters)
synapseclient/models/mixins/storable_container.py
:Line 334:89: E501 line too long (89 > 88 characters)
Line 1654:89: E501 line too long (97 > 88 characters) Line 1743:89: E501 line too long (101 > 88 characters) Line 1747:89: E501 line too long (96 > 88 characters)
Problem:
.get()
function we were running the code within the asynciorun_in_executor
. This worked fine up until now. The problem at this point is that utility functions are now going to be directly using these new model functions and it leads to a problem where we are changing from a non-async context (Before SynapseUtils) -> Async context (Inside the model) -> Non-Async context (Running in a thread executor) -> Async context (To download a file) -> Multi-threaded download.Solution:
Testing: