google-code-export / appengine-devappserver2-experiment

Automatically exported from code.google.com/p/appengine-devappserver2-experiment
0 stars 0 forks source link

backends.get_instance() throws exception #27

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start a backend task (we use deferred tasks)
2. In the task, try to get the instance number (via get_instance())
3. Exception is thrown

What is the expected output? What do you see instead?
I expect the integer value of the backend instance I'm on. Instead I see this:

  File "/path_to/google_appengine/google/appengine/api/backends/backends.py", line 71, in get_instance
    return int(instance)
ValueError: invalid literal for int() with base 10: 
'fdeadb05da5d9ece7ead6e2baa7ecfb2e4bc'

What version of the product are you using? On what operating system?
0.5.2 on Arch Linux (64-bit)

Original issue reported on code.google.com by prat...@condorcapital.com on 24 Jan 2013 at 6:32

GoogleCodeExporter commented 9 years ago
The problem is that your task is running on a frontend instance not on a 
backend.

This is due to a bug in the taskqueue API implementation:
https://code.google.com/p/googleappengine/issues/detail?id=5105

So I'm marking this as a duplicate.

Original comment by bquin...@google.com on 28 Jan 2013 at 6:00