
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
@starecase/nest-cron-monitor
Advanced tools
This is a NestJS module designed for monitoring cron jobs through starecase.io
This is a NestJS module designed for monitoring cron jobs through Starecase.io
npm install @starecase/nest-cron-monitor
OR
yarn add @starecase/nest-cron-monitor
You will need to:
We recommend using environment variables for storing your API Key. To set values for these variables, use the following variable names:
Just register this module:
@Module({
imports: [
StarecaseModule.forRoot({
apiKey: `YOUR_API_KEY_GOES_HERE`,
}) as DynamicModule,
],
})
class AppModule {
}
Quite often you might want to asynchronously pass module options instead of passing them beforehand.
In such case, use forRootAsync()
method like many other Nest.js libraries.
StarecaseModule.forRootAsync({
imports: [ConfigModule],
useFactory: async (configService: ConfigService) => {
return {
apiKey: configService.get<string>("STARECASE_API_KEY")
};
},
inject: [ConfigService],
}) as DynamicModule
You need to add the @CronMonitor decorator to your @Cron or any other monitoring method you are using. Below is an example using @nestjs/schedule:
import {CronMonitor} from "@starecase/nest-cron-monitor";
@Injectable()
export class AppController {
@Cron('45 * * * * *')
@CronMonitor({jobName: "Job Name", jobGroup: "Job Group", expression: '45 * * * * *', debug: true})
handleCron() {
console.log('Called when the current second is 45');
}
}
This project is licensed under the terms of the MIT license.
FAQs
This is a NestJS module designed for monitoring cron jobs through starecase.io
The npm package @starecase/nest-cron-monitor receives a total of 2 weekly downloads. As such, @starecase/nest-cron-monitor popularity was classified as not popular.
We found that @starecase/nest-cron-monitor 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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.