Skip to content

Commit

Permalink
Merge branch 'feat/rw-uploads-extension' of github.com:dac09/redwood …
Browse files Browse the repository at this point in the history
…into feat/rw-uploads-extension

* 'feat/rw-uploads-extension' of github.com:dac09/redwood:
  chore(test-fixture): correct rebuild script string suffix substitution  (redwoodjs#11339)
  refactor(forms): Build with esbuild and add conditional exports (redwoodjs#11338)
  refactor(prerender): build with esbuild and introduce conditional exports (redwoodjs#11337)
  Adds more tests! Refactor rw-jobs-worker  (redwoodjs#11335)
  refactor(auth-providers): switch to esbuild for some 'web' packages (redwoodjs#11334)
  Jobs doc updates (redwoodjs#11333)
  chore(ci): Split formatting check into separate job  (redwoodjs#11332)
  Updates caching doc code snippets to be consistent (redwoodjs#11331)
  chore(tsconfig): Properly link to api-server's tsconfig (redwoodjs#11330)
  Adds background job scheduling and execution (redwoodjs#11238)
  [gh11317] Added documentation for working with Jest and Alias Paths (redwoodjs#11323)
  fix(record): Update dependencies and build dual esm/cjs (redwoodjs#11300)
  chore(build): Consistent tsconfig and buildinfo naming for CJS (redwoodjs#11326)
  chore(test): Fix RSC server cell smoke test (redwoodjs#11327)
  chore(playwright): Make RSC tests less flakey (redwoodjs#11325)
  chore(ci): Temporary fix for format checking on all PRs (redwoodjs#11324)
  chore(build): Move more repetitive code into framework-tools (redwoodjs#11320)
  chore(docs): fix docs formatting (redwoodjs#11321)
  • Loading branch information
dac09 committed Aug 22, 2024
2 parents 06307f3 + 3d16151 commit 7d5776e
Show file tree
Hide file tree
Showing 180 changed files with 6,374 additions and 484 deletions.
14 changes: 14 additions & 0 deletions .changesets/11238.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
- Adds background job scheduling and execution (#10906) by @cannikin

This new package provides scheduling and processing of background jobs. We want everything needed to run a modern web application to be included in Redwood itself—you shouldn't need any third party integrations if you don't want.

Background jobs have been sorely missed, but the time has come! (If you do want to use a third party service we have had an [integration with Inngest](https://community.redwoodjs.com/t/ship-background-jobs-crons-webhooks-and-reliable-workflows-in-record-time-with-inngest-and-redwoodjs/4866) since May of 2023!)

## Features

- Named queues: you can schedule jobs in separate named queues and have a different number of workers monitoring each one—makes it much easier to scale your background processing
- Priority: give your jobs a priority from 1 (highest) to 100 (lowest). Workers will sort available jobs by priority, working the most important ones first.
- Configurable delay: run your job as soon as possible (default), wait a number of seconds before running, or run at a specific time in the future
- Auto-retries with backoff: if your job fails it will back off at the rate of attempts \*\* 4 for a default of 24 tries, the time between the last two attempts is a little over three days.
- Run inline: instead of scheduling to run in the background, run immediately
- Integrates with Redwood's [logger](https://docs.redwoodjs.com/docs/logger): use your existing one in api/src/lib/logger or create a new one just for job logging
3 changes: 3 additions & 0 deletions .changesets/11337.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- refactor(prerender): build with esbuild and introduce conditional exports (#11337) by @Josh-Walker-GM

This change restricts the available imports from the `@redwoodjs/prerender` package. You will also have to use modern `moduleResolution` settings in your tsconfig to resolve the imports correctly within TS.
3 changes: 3 additions & 0 deletions .changesets/11338.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- refactor(forms): Build with esbuild and add conditional exports (#11338) by @Josh-Walker-GM

This change introduces restrictions on what can be imported from the `@redwoodjs/forms` package. You can no longer import from `@redwoodjs/forms/dist/...`. All imports should be available simply from `@redwoodjs/forms`.
19 changes: 16 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,22 @@ jobs:
steps:
- run: echo "Skipped"

formatting-check:
name: 📝 Check formatting (prettier)
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up job
uses: ./.github/actions/set-up-job
with:
set-up-yarn-cache: false
yarn-install-directory: .
build: false

- name: 📝 Check formatting (prettier)
run: yarn format:check

build-lint-test:
needs: check

Expand All @@ -90,9 +106,6 @@ jobs:
- name: 🔎 Lint
run: yarn lint

- name: 📝 Check formatting (prettier)
run: yarn format:check

- name: 🥡 Check packaging and attw
run: yarn check:package

Expand Down
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"baremetal",
"bazinga",
"corepack",
"daemonized",
"envinfo",
"execa",
"Fastify",
Expand Down
Loading

0 comments on commit 7d5776e

Please sign in to comment.