mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-22 08:02:19 +00:00
tmp overflow fix
This commit is contained in:
@@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user