I was trying to use eta parameter in TaskOptions and I keep getting
the following error:
java.lang.IllegalArgumentException: ETA is invalid :
Anybody has some clue about this one? My code is pasted below. My
intention is to execute this task after two hours.
Thanks!
Queue queue = QueueFactory.getQueue("payments");
long eta = System.currentTimeMillis() + 2*60*60*1000;
TaskOptions taskOptions =
TaskOptions.Builder.url("/pollpayments");
taskOptions = taskOptions.etaMillis(eta);
taskOptions =
taskOptions.param(URLs.REQUEST_PARAM_POSTING_ID,
postingId);
taskOptions = taskOptions.param("task", "true");
TaskHandle queueHendle = queue.add(taskOptions);
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---