feat: Limit CPU in runtime (#3685) (#4782)

feat: add throttle runtime (#3685)
This commit is contained in:
pa
2024-10-24 15:30:24 +08:00
committed by GitHub
parent fcde0a4874
commit 9d3ee6384a
31 changed files with 787 additions and 41 deletions

View File

@@ -12,6 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
use common_runtime::runtime::RuntimeTrait;
use common_runtime::JoinHandle;
use futures::Future;
use rustpython_vm::builtins::PyBaseExceptionRef;