We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 714967d commit d337726Copy full SHA for d337726
apps/api/src/app.service.ts
@@ -124,6 +124,11 @@ export class AppService extends AbstractService implements OnApplicationBootstra
124
*/
125
@Cron(CronExpression.EVERY_6_HOURS)
126
public async handleCron(): Promise<void> {
127
+ if (isConsoleEntrypoint()) {
128
+ this.logger.debug('Skipping LifecycleService cron job in console mode.');
129
+ return;
130
+ }
131
+
132
this.logger.debug('Cron job started.');
133
134
if (process.env.NODE_ENV === 'development') {
0 commit comments