Rank 2: Process
hey when i execute an appwrite function that is inside a for loop means: send multiple executions of that function
it stop at processing
then it fails after timeout
Votes
1
Replies
21
Participants
Unknown
Messages
22
Rank 2: Process
hey when i execute an appwrite function that is inside a for loop means: send multiple executions of that function
it stop at processing
then it fails after timeout
Rank 2: Process
only the first one is seems frozen rest all the execution process successfully
Rank 4: Virtual Machine
appwrite cloud or local docker?
Rank 2: Process
Cloud
Rank 4: Virtual Machine
does code work fine on your IDE?
Rank 2: Process
yaa
Rank 2: Process
wait
Rank 2: Process
oh yes
Rank 4: Virtual Machine
oooo, I may not be able to answer this
hi, is there a possibility that your loop might be going into an infinite loop and/or faulty execution?
Rank 2: Process
batches = [
data_array[i : i + batch_size]
for i in range(0, len(data_array), batch_size)
]
for batch in batches:
batch = json.dumps(
{"urls": {"others": batch}, "bucketId": "somethng"}
)
send_data_batch(batch)
Rank 2: Process
doesn't seems like it
Rank 2: Process
Rank 2: Process
Rank 4: Virtual Machine
that is true
Admin
would you please share more of your code?
Rank 2: Process
sorry Steven i can't is to reproduce the problem maybe it because i add time.sleep in during creating execution or i changes i made to the function itself
Rank 2: Process
Rank 2: Process
earlier when this problem occurred i deleted the function 2 times to stop the execution(didn't wait for it to timeout)
Rank 2: Process
but if you want to check the logs from your side
Rank 2: Process
projectId -> 6463a34a73ca03c70d35
Admin
oh...yes, that could cause it...