Thanks for your answers

Every day i check booking s(100 bookings) from cron jon, it gives 200 
bookings

* have to run task queue 1 hour before, different booking in different time.

* How many ques have to create, thx 


On Sunday, June 24, 2018 at 9:43:31 PM UTC+2, Vitaly Bogomolov wrote:
>
> Hi.
>
> You can't implement this task directly, according cron rules. But you can 
> use some tricks with AppEngine abilities. For example.
>
> Add cron rule, that will be called at  09:00 in weekdays
> In the handler of this rule put 30 tasks to appengine taskqueue with 
> appropriate delay. You can use one of the 'countdown' or 'eta' parameters .(
> https://cloud.google.com/appengine/docs/standard/python/refdocs/google.appengine.api.taskqueue.taskqueue#google.appengine.api.taskqueue.taskqueue.add
> ). 
>
> You code may be something like this:
>
> for i in range(30):
>   taskqueue.add(
>     url='/you_working_function_url',
>     countdown=i*120  # delay in seconds
>   ) 
>
> WBR, Vitaly.
>  
>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/81469899-e815-4c2b-a1d0-470a9d25bdd5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to