Skip to content

Commit 2539218

Browse files
committed
chore(core): bump version to 0.1.59 and update scheduling configuration
- Updated package version to 0.1.59. - Changed default behavior of auto-start in Schedule class to false for improved control over scheduling execution.
1 parent 3c1e882 commit 2539218

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/core/lib/scheduler/schedule.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,14 +359,15 @@ export class Schedule {
359359
this.scheduleName = this.scheduleName || `schedule_${ulid()}`;
360360
this.cronExpression = this.frequency.build();
361361
const autoStart =
362-
ConfigService.get('app.schedules.runInAnotherThread') || true;
362+
ConfigService.get('app.schedules.runInAnotherThread') || false;
363+
363364
const timezone =
364365
this.tz ?? (ConfigService.get('app.schedules.timezone') as string);
365366

366367
this.cronJob = CronJob.from({
367368
cronTime: this.cronExpression,
368369
onTick: this.composeHandler.bind(this),
369-
start: autoStart,
370+
start: !autoStart,
370371
timeZone: timezone,
371372
});
372373

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@intentjs/core",
3-
"version": "0.1.58",
3+
"version": "0.1.59",
44
"description": "Core module for Intent",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)