<#2629 [Core feature] Execute WebAPI sync plugins ...
# flyte-github
a
#2629 [Core feature] Execute WebAPI sync plugins asynchronously Issue created by hamersaw Motivation: Why do you think this is important? Currently instances of the web api sync plugin will block FlytePropeller workers during execution. This means that during scenarios of heavy load, for either expensive calls or a large number of calls, we effective starve FlytePropeller workers. As a result other workflows are unable to progress. Goal: What should the final outcome look like, ideally? We propose to execute instances of the web api sync plugin asychronously. This paradigm can emulate the current webapi async plugin scheme; where plugins have a
Get
function that retrieves status and is called in the background to populate a global cache, and a
Status
call which is called by FlytePropeller to check the status of that cache. We can use goroutines to effectively execute synchronous web api calls in the background and check the status of those calls with a lightweight lookup into a cache. This will ensure FlytePropeller workers maintain their lightweight design and reduce starvation under heavy load. Describe alternatives you've considered Restricting the maximum number of nodes processed in a FlytePropeller round has been proposed. However, this still means that execution of the web api sync plugin is in the critical path. Additionally, a worker is unable to parallelize these operations, meaning that workflow evaluation is essentially time-division multiplexing. Propose: Link/Inline OR Additional context No response Are you sure this issue hasn't been raised already? ☑︎ Yes Have you read the Code of Conduct? ☑︎ Yes flyteorg/flyte