-
Notifications
You must be signed in to change notification settings - Fork 35
fix: exit process after dailyRefinementJob finishes #612
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -131,7 +131,12 @@ if (require.main === module) { | |
|
|
||
| // For testing/manual trigger, we can also pass a flag or just run immediately if needed | ||
| if (process.argv.includes("--run-now")) { | ||
| job.runRefinement(); | ||
| job.runRefinement().then(() => { | ||
| process.exit(0); | ||
| }).catch((err) => { | ||
| console.error(err); | ||
| process.exit(1); | ||
|
Comment on lines
+134
to
+138
|
||
| }); | ||
|
Comment on lines
+135
to
+139
|
||
| } | ||
| } | ||
| // Implementation is complete and verified. | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2:
--run-nowcan return a false success exit code becauserunRefinement()swallows errors, so this promise chain almost always resolves and exits with 0.Prompt for AI agents