Google App Engine - Event when queue finishes -




i'm starting build bulk upload tool , i'm trying work out how accomplish 1 of requirements.

the idea user upload csv file , tool parse , send each row of csv task queue task run. once tasks (relating specific csv file) completed, summary report sent user.

i'm using google app engine , in past i've used standard task queue handle tasks. however, standard task queue there no way of knowing when queue has finished, no event fired trigger report generation i'm not sure how achieve this?

i've looked more , understand google offers google pubsub. more sophisticated , seems more suited, still can't find out how trigger , event when pubsub queue finished, ideas?

seems use counter this. create entity integer property set number of lines of csv file. each task decrement counter in transaction when finishes processing row (in transaction). 1 task set counter 0, , task trigger event. might cause contention though.

another possibility have each task create entity of specific kind when finishes processing row. can count number of these entities determine when rows have been processed.





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -