There isn't a way to modify the countdownMillis of a task already added, 
but what you could do is just delete the task 
<https://cloud.google.com/appengine/docs/java/taskqueue/#Java_Deleting_tasks> 
using the taskHandle (see Queue.deleteTask(TaskHandle) 
<https://cloud.google.com/appengine/docs/java/javadoc/com/google/appengine/api/taskqueue/Queue#deleteTask-com.google.appengine.api.taskqueue.TaskHandle->
 
and then re-add it with a different countdownMillis.

Also, this seems like a question that would be better posted to Stack 
Overflow, rather than a discussion post. The google-appengine group is 
intended more for general discussion rather than 1-on-1 support assistance. 
Please see the main Community Support page 
<https://support.google.com/cloud/answer/3466163#> for a list of the tags 
we monitor.

On Wednesday, December 23, 2015 at 7:05:28 PM UTC-5, Trez Ertzzer wrote:
>
> Hello. I work in java only.
> I have a task that I add to a queue like this.
> public void myFunctionThatAddTaskToTaskQueue(){
>
>  Queue queue = QueueFactory.getQueue("findOwner");
>
>  TaskHandle taskHandle = queue.add(TaskOptions.Builder.withPayload(new 
> FindOwnerToAcceptRental2.FindOwnerToAcceptRentalTask(
> idOfFindOwner4RentalEntity)).countdownMillis(countdownMillis));
>
> }
>
>
> lets say for exemple that countdownMillis equals to 10 minutes.
>
>
> let's say that something happens let's say 1 minute after the 
>  "myFunctionThatAddTaskToTaskQueue" is called and so NOW I would like the 
> task (the task that is already in the queue) to be handled not in 9 minutes 
> but in 2 minutes. is it possible? if yes can you tell me how...
>
>    
>

-- 
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/34362c8e-920a-4d44-bc24-b7e15c714aa5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to