Search code examples
javagoogle-app-enginemoduletask-queuedevserver

Routing tasks to specific modules in GAE devserver


I'm trying to convert my current GAE project to using modules. I'd like all tasks of a certain path to run on a specific module.

I understand that in production, I can just enqueue the task as normal and the dispatch file handles routing it to the correct module.

However, how can I get this same behaviour in the dev server? I'd rather not do something hackey like addressing the module directly.

Thanks!


Solution

  • Instead of using path routing to get your tasks to run on specific modules, you could create a queue for each module with the correct target parameter. Any task that you send to this queue will be executed against that module. You could even create a separate queue for each class of task.