
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
appengine-in-memory-taskqueue
Advanced tools
Development stub for the taskqueue to replace it with an in-memory version wich does not rely on the docker+appengine middleware setup to function properly thus making your development cycle easier.
Development replacement for the taskqueue to have an in-memory dropin wich does not rely on the docker+appengine middleware setup to function properly.
Currently, NodeJS support of Google App Engine is still in the experimental phase. You can use the appengine experimental nodejs library to gain some interaction with the platform. But for using the TaskQueue a lot of appengine middleware needs to be set up so that each request contains all metadata for accessing the taskqueue. This is done by the GAE Nodejs Docker container + deploying to GAE which takes a lot of time.
To alleviate these issues this packages has been created. It contains a stub for the taskqueue which is an in-memory replacement and will execute the inserted items onto the current localhost application.
var taskqueue;
var appengine = require('appengine');
if(isDevelopmentMode) {
taskqueue = require('appengine-in-memory-taskqueue');
// optional; reconfigure to different settings for port / retries.
// default = localhost:8080 no retries
taskqueue.configure('localhost', 8181, 3);
}
else {
// production, use the regular appengine taskqueue
taskqueue = appengine.taskqueue;
}
//use like the default taskqueue
taskqueue.add(req, options);
The in-memory taskqueue is internally a simple array which is looped over to process all tasks sequentially. If no tasks are in the queue it will iterate once every 500ms to evaluate if new tasks are added to the queue.
This library has dependencies on the following npm packages:
This replacement only covers basic usage of the taskqueue and is provided as-is. Send me a Pull Request if you want to contribute.
Obvious missing features:
queueName
FAQs
Development stub for the taskqueue to replace it with an in-memory version wich does not rely on the docker+appengine middleware setup to function properly thus making your development cycle easier.
The npm package appengine-in-memory-taskqueue receives a total of 3 weekly downloads. As such, appengine-in-memory-taskqueue popularity was classified as not popular.
We found that appengine-in-memory-taskqueue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.