Skip to content

Commit

Permalink
Merge branch 'main' into feat/rw-uploads-extension
Browse files Browse the repository at this point in the history
  • Loading branch information
dac09 authored Aug 22, 2024
2 parents db9522d + 5f9ab5b commit 3d16151
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 3d16151

Please sign in to comment.