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

fix(jobs): Type-safe arguments passing to jobs from scheduler #11371

Merged
merged 1 commit into from
Aug 25, 2024

Conversation

Tobbe
Copy link
Member

@Tobbe Tobbe commented Aug 25, 2024

The arguments you tell your scheduling function (often exported as later from api/src/lib/jobs.ts) to pass to your job are now more type-safe than they used to be.
Previously you could schedule the job with no arguments to pass to the job, even if the job itself had required arguments. This is no longer allowed

@Tobbe Tobbe added the release:fix This PR is a fix label Aug 25, 2024
@Tobbe Tobbe added this to the next-release milestone Aug 25, 2024
@Tobbe Tobbe added the changesets-ok Override the changesets check label Aug 25, 2024
@Tobbe Tobbe merged commit 58d35a0 into redwoodjs:main Aug 25, 2024
51 of 56 checks passed
@Tobbe Tobbe deleted the tobbe-jobs-typesafe-scheduling branch August 25, 2024 06:29
dac09 added a commit to dac09/redwood that referenced this pull request Aug 26, 2024
…into feat/rw-uploads-extension

* 'feat/rw-uploads-extension' of github.com:dac09/redwood: (22 commits)
  fix(jobs): Type-safe arguments passing to jobs from scheduler (redwoodjs#11371)
  chore(jobs tests): String literal array for queues (redwoodjs#11370)
  feat(jobs): Expose types (redwoodjs#11369)
  fix(template): Set scripts/ module resolution to match api/ (redwoodjs#11366)
  fix(template): Format tsconfig and jsconfig (redwoodjs#11365)
  fix(tsconfig): set "module" to "ESNext" for web/tsconfig.json (redwoodjs#11368)
  fix(cli): Fix tests generated by `g cell` (redwoodjs#11364)
  chore(deps): bump micromatch to 4.0.8  (redwoodjs#11362)
  chore(deps): bump micromatch to 4.0.8 in create-redwood-rsc-app (redwoodjs#11363)
  Adds docs for how to do recurring jobs (redwoodjs#11361)
  Adds docs for jobs setup and generate commands (redwoodjs#11359)
  feat(storybook): Remove consideration of mjs from docgen plugin (redwoodjs#11346)
  chore(deps): bump micromatch from 4.0.5 to 4.0.8 in /docs (redwoodjs#11358)
  chore(tarsync): Add watch mode to project:tarsync (redwoodjs#11347)
  chore(docs): Move content to main so we can deploy from that branch (redwoodjs#11356)
  chore(jobs test): Remove unused file. Use toContain() (redwoodjs#11355)
  chore(listr2mock): Move comments closer to referenced code (redwoodjs#11354)
  chore(listr2mock): Improve types and make it more capable (redwoodjs#11352)
  chore(jobs): Add e2e test script and CI job (redwoodjs#11348)
  chore(cli tests): Fix include glob (redwoodjs#11351)
  ...
@Josh-Walker-GM Josh-Walker-GM modified the milestones: next-release, v8.0.0 Sep 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changesets-ok Override the changesets check release:fix This PR is a fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants