
Security News
Deno Goes the Way of the Dinosaur
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.
@eggjs/background-task
Advanced tools
@eggjs/background-tasknpm i --save @eggjs/background-task
import { BackgroundTaskHelper } from '@eggjs/background-task';
@ContextProto()
export default class BackgroundService {
@Inject()
private readonly backgroundTaskHelper: BackgroundTaskHelper;
async backgroundAdd() {
this.backgroundTaskHelper.run(async () => {
// do the background task
});
}
}
tegg release the request context after request is done. So use the process.nextTick, setTimeout, setInterval in request is not safe.
Please use the backgroundTaskHelper, the release process will wait all the background tasks are done.
The release process will wait tasks done, but not forever. The default timeout is 5s, if task will cost more than 5s, two ways to resolve
SingletonProto to do the work, SingletonProto never releasebackgroundTaskHelper.timeoutFAQs
background task util for tegg
The npm package @eggjs/background-task receives a total of 392 weekly downloads. As such, @eggjs/background-task popularity was classified as not popular.
We found that @eggjs/background-task demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 10 open source maintainers collaborating on the project.

Security News
Cloudflare is acquiring Deno’s team, which will provide another year of bug fixes and security updates before ending support for the runtime.

Security News
Anthropic’s free OSS Scanner uses Mythos and other Claude models to find open source vulnerabilities and send maintainers reports with proposed fixes.

Security News
On Front Lines’ Early Adopters: CISO podcast, Andrew Becherer shares lessons from Datadog, weighs the long-term costs of AI-built tools, and explains how founders can actually gain a CISO’s trust.