Skip to content
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

Add note to error message about running yarn rw dev or yarn rw build before the workers can be started #11573

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/jobs/src/errors.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const JOBS_CONFIG_FILENAME = 'jobs.ts/js'
const JOBS_CONFIG_FILENAME = 'jobs.{ts,js}'

/**
* Parent class for any RedwoodJob-related error
Expand Down Expand Up @@ -71,7 +71,7 @@ export class JobExportNotFoundError extends RedwoodJobError {
export class JobsLibNotFoundError extends RedwoodJobError {
constructor() {
super(
`api/src/lib/${JOBS_CONFIG_FILENAME} not found. Run \`yarn rw setup jobs\` to create this file and configure background jobs`,
`api/src/lib/${JOBS_CONFIG_FILENAME} not found. Run \`yarn rw setup jobs\` to create this file and configure background jobs. Already did that? You'll need to run \`yarn rw dev\` or \`yarn rw build\` before you can start the job workers!`,
)
}
}
Expand Down
Loading