-
Notifications
You must be signed in to change notification settings - Fork 1k
Open
Labels
bug/needs-infoMore information is needed for reproductionMore information is needed for reproduction
Description
What's not working?
Hi, in production, all jobs after my first execution fail with this message, visible in the lastError
field of my BackgroundJobs
table:
The "path" argument must be of type string. Received undefined
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received undefined
at Object.join (node:path:1269:7)
at loadJob (/opt/render/project/src/node_modules/@redwoodjs/jobs/dist/loaders.js:56:52)
at Executor.perform (/opt/render/project/src/node_modules/@redwoodjs/jobs/dist/core/Executor.js:63:52)
at #work (/opt/render/project/src/node_modules/@redwoodjs/jobs/dist/core/Worker.js:124:12)
For what it's worth, this is how I'm scheduling subsequent jobs at the end of my job's execution:
await later(CreateAutomaticUpdatesJob, [], { wait: 15 })
And other details that might matter:
- My server is deployed on render & my database is on supabase
- I have a pretty convoluted build script:
corepack enable && yarn install && yarn rw build api && yarn rw jobs stop && yarn rw jobs start && yarn rw exec startJobs
- My
startJobs
script just runsawait CreateAutomaticUpdatesJob.perform()
How do we reproduce the bug?
No response
What's your environment? (If it applies)
System:
OS: Linux 6.8 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
Shell: 5.2.15 - /bin/bash
Binaries:
Node: 20.19.0 - /tmp/xfs-27a1c885/node
Yarn: 4.4.0 - /tmp/xfs-27a1c885/yarn
Databases:
SQLite: 3.40.1 - /usr/bin/sqlite3
npmPackages:
@redwoodjs/auth-supabase-setup: 8.6.1 => 8.6.1
@redwoodjs/core: 8.6.1 => 8.6.1
@redwoodjs/project-config: 8.6.1 => 8.6.1
Are you interested in working on this?
- I'm interested in working on this
Metadata
Metadata
Assignees
Labels
bug/needs-infoMore information is needed for reproductionMore information is needed for reproduction