Skip to content

Fix unhandled Promise rejection in cron migration job callback#6153

Merged
xet7 merged 1 commit intowekan:mainfrom
harryadel:fix/cron-migration-async-job
Feb 19, 2026
Merged

Fix unhandled Promise rejection in cron migration job callback#6153
xet7 merged 1 commit intowekan:mainfrom
harryadel:fix/cron-migration-async-job

Conversation

@harryadel
Copy link
Contributor

The createCronJob method's job callback was not async and did not await this.runMigrationStep(step), causing the returned Promise to float. When runMigrationStep threw, the unhandled rejection triggered quave:synced-cron's global handler which called process.exit(0), crashing the app on startup.

The createCronJob method's job callback was not async and did not await
this.runMigrationStep(step), causing the returned Promise to float.
When runMigrationStep threw, the unhandled rejection triggered
quave:synced-cron's global handler which called process.exit(0),
crashing the app on startup.
@xet7 xet7 merged commit a0c918c into wekan:main Feb 19, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants