*Christian: *Thanks! I will take a look... my goal was to set up and use 
the queues without having to have a GAE app deployed, but maybe I should 
consider doing a dumb GAE app just to set tup the queues.

*Evan:* awesome! Didn't know about Pub Sub existence... I need just simple 
queues, but maybe Pub Sub is the best solution if your app does not run in 
GAE yet.

Thanks everyone!




On Monday, May 16, 2016 at 5:23:47 PM UTC-3, Christian F. Howes wrote:
>
> have you used appcfg.py update_queues? 
>
>
> https://cloud.google.com/appengine/docs/python/tools/appcfg-arguments#update_queues
>  
>
> On 5/16/16 11:59, Cristian Mastrantono wrote: 
> > After more research... my conclusion is that the queue must be created 
> with 
> > a GAE app... and then you can use it from CE. Because even if I define 
> the 
> > queue in my queue.yaml (CE) it is not created. Never. 
> > 
> > Maybe someone can confirm this. 
> > 
> > 
> > 
> > On Monday, May 16, 2016 at 3:40:47 PM UTC-3, Christian F. Howes wrote: 
> >> 
> >> Hi, 
> >> 
> >> you ask: "*now I'm wondering if the queue must be created first before 
> >> start using it"* I am pretty sure that even on GAE you must update 
> >> queue.yaml and deploy the new queue before GAE can use it, so I'd 
> assume 
> >> that is the same for the REST API.  I don't think that you can create 
> >> queues on the fly, but you can use parameters on the tasks, or 
> different 
> >> URLs on the tasks to handle them differently. 
> >> 
> >> good luck, 
> >> 
> >> cfh 
> >> 
> >> On Friday, May 13, 2016 at 6:37:05 AM UTC-7, Cristian Mastrantono 
> wrote: 
> >>> 
> >>> I'm having trouble dealing with the Pull Task Queue REST API. Whenever 
> I 
> >>> try it says "403 - you are not allowed to make this api call". I'm 
> trying 
> >>> this in my computer, which is obviously out of the App and Compute 
> Engine. 
> >>> 
> >>> 
> >>> I have my Service account credential, my queue.xml in WEB-INF, and 
> *now 
> >>> I'm wondering if the queue must be created first before start using 
> it* ... 
> >>> is that necessary? 
> >>> 
> >>> 
> >>> This is my code... Am I missing something? 
> >>> 
> >>> 
> >>> JsonFactory JSON_FACTORY = JacksonFactory.getDefaultInstance(); 
> >>> HttpTransport httpTransport = 
> GoogleNetHttpTransport.newTrustedTransport(); 
> >>> 
> >>> List<String> scopes = new ArrayList<>(); 
> >>> scopes.add(TaskqueueScopes.TASKQUEUE); 
> >>> scopes.add(TaskqueueScopes.TASKQUEUE_CONSUMER); 
> >>> 
> >>> ClassLoader classloader = 
> Thread.currentThread().getContextClassLoader(); 
> >>> InputStream is = 
> classloader.getResourceAsStream("credential-12356.json"); 
> >>> 
> >>> GoogleCredential credential = 
> GoogleCredential.fromStream(is).createScoped(scopes); 
> >>> 
> >>> Taskqueue taskQueue = new Taskqueue.Builder(httpTransport, 
> JSON_FACTORY, credential).setApplicationName(APPLICATION_NAME).build(); 
> >>> 
> >>> Taskqueue.Taskqueues.Get request = 
> taskQueue.taskqueues().get(projectId, taskQueueName); 
> >>> request.setGetStats(true); 
> >>> 
> >>> //Get the queue! 
> >>> TaskQueue queue = request.execute(); 
> >>> 
> >>> 
> >>> 
> >>> 
> > 
>

-- 
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/15ed3492-8167-4aae-a66b-83728e2ba388%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to