Hello,

For your use case, would you be able to confirm if the files are indeed 
being successfully uploaded to your GCS bucket? Also, would you be able to 
verify if the public documentation for logging with [1] your Python App 
Engine application was already consulted? Are you able to call other 
functionalities from your services (downloading, listing, etc.)? Perhaps 
the issue may lies in your code implementation which I would suggest to 
reach out to communities such as Stack Overflow [2] or Github for such 
inquiries as they would be better suited for developmental questions. 

Furthermore, I would advise to look through documentation on how App Engine 
handles it's requests [4] in order to gain some insight on how your 
requests are received and responses sent for your application. 

[1] 
https://cloud.google.com/appengine/docs/standard/python/how-requests-are-handled#logging
[2] https://stackoverflow.com/
[3] https://github.com/GoogleCloudPlatform/python-docs-samples/issues
[4] 
https://cloud.google.com/appengine/docs/standard/python3/how-requests-are-handled

On Friday, June 11, 2021 at 10:47:48 AM UTC-4 [email protected] wrote:

> Hi Team,
>
> We are stuck with a issue, we are trying to use multiprocessing. We are 
> using below ways.
>
> 1. from multiprocessing.dummy import Pool
>     pool = Pool(20)
>     pool.apply_async(call_api, xxxxxxxx)
>
> 2. import concurrent.futures
>     import requests
>     pool = concurrent.futures.ThreadPoolExecutor(max_workers=4)
>     pool.submit(lambda:requests.post(xxxxx))
>
> We are using python 3.7 and app.yaml file is below.
>
> service: abc
> runtime: python37
> instance_class: B4_1G
> entrypoint: gunicorn -w 4 -k uvicorn.workers.UvicornWorker app.main:app
> basic_scaling:
>   idle_timeout: 10m
>   max_instances: 25
>
> Both the methods are working fine in our local machines(computers) but 
> when deploying on app engine these functionality are not working even we 
> are not getting any error in logs.
>
> Our use case is, we have two services A and B in service B we have written 
> a api to upload file into google bucket, and we are calling this api from 
> service A, we are uploading big files so we cant wait to complete, so we 
> want response back from service A after call Service B api.
>
> Please help to understand, what is the issue and how can we achieve this.  
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/7470561a-7ccd-41cc-93d2-14836fd05ecan%40googlegroups.com.

Reply via email to