From bfa32b46b8de4ec3faff7af9a514de7d9fb887c8 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Fri, 24 Oct 2025 19:38:35 +0000 Subject: [PATCH] tmp overflow fix --- backend/tests/worker.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/backend/tests/worker.rs b/backend/tests/worker.rs index c2516e1877..f6467ce339 100644 --- a/backend/tests/worker.rs +++ b/backend/tests/worker.rs @@ -2860,6 +2860,13 @@ from wmill import task import pandas as pd import numpy as np +def main(n: int): + l = [] + for i in range(n): + l.append(heavy_compute(i)) + print(l) + return [send_result(sum(l), "example@example.com"), n] + @task() def heavy_compute(n: int): df = pd.DataFrame(np.random.randn(100, 4), columns=list('ABCD')) @@ -2870,12 +2877,6 @@ def send_result(res: int, email: str): print(f"Sending result {res} to {email}") return "OK" -def main(n: int): - l = [] - for i in range(n): - l.append(heavy_compute(i)) - print(l) - return [send_result(sum(l), "example@example.com"), n] "#; #[cfg(feature = "python")]