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

Added experimental background job queue #20985

Merged
merged 37 commits into from
Nov 4, 2024
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
fa3773a
Added metadata and queue_entry to jobs schema
9larsons Sep 11, 2024
0944f8e
Added and wired up the jobs queue into JobManager
9larsons Sep 12, 2024
cbfb1a2
Revert the schedule change for the email analytics job
9larsons Sep 12, 2024
d74d339
Updated metadata field to be a 2000 char string value
9larsons Sep 12, 2024
e3b68ec
Updated refs to jobManager.queue to be inlineQueue
9larsons Sep 12, 2024
f47448b
Refactored queue processor code to be more testable/readable
9larsons Sep 12, 2024
713dcc4
Removed db dependency
9larsons Sep 13, 2024
4b3b928
Added bulk of unit tests
9larsons Sep 16, 2024
85c28ea
Fixed linting
9larsons Sep 16, 2024
010369b
Fixed unit tests
9larsons Sep 16, 2024
62807b9
Fixed linting
9larsons Sep 16, 2024
e253203
Fixed db unit test for schema change
9larsons Sep 16, 2024
125f3d7
Add workerpool
9larsons Sep 17, 2024
7aeb7e0
Added and updated jobs integration tests
9larsons Sep 17, 2024
5508cfd
Fixed linting
9larsons Sep 17, 2024
c602c67
Attempt longer timeout for CI
9larsons Sep 18, 2024
2cd905f
add more debug logging
9larsons Sep 18, 2024
e5529c0
Add even more logging
9larsons Sep 18, 2024
aa8fc8b
closure
9larsons Sep 18, 2024
6694210
.
9larsons Sep 18, 2024
2fd8caf
.
9larsons Sep 18, 2024
22b76b0
.
9larsons Sep 18, 2024
1d77f5a
,..
9larsons Sep 18, 2024
d341de1
Updated integration tests and removed clogs
9larsons Sep 25, 2024
e5ea94f
Removed blank line
9larsons Sep 25, 2024
0a1d943
Removed clogs
9larsons Sep 25, 2024
ff7a699
Update email analytics require
9larsons Sep 25, 2024
06cc10c
Updated integration tests
9larsons Sep 26, 2024
55cdf52
Merge branch 'main' into add-job-queue
9larsons Sep 30, 2024
1adeee1
Merge branch 'main' into add-job-queue
9larsons Oct 7, 2024
635a6b8
Updated testutils call
9larsons Oct 7, 2024
48aef4e
Merge branch 'main' into add-job-queue
9larsons Oct 16, 2024
8790ae5
Fix merge
9larsons Oct 16, 2024
cad48b8
Merge branch 'main' into add-job-queue
9larsons Oct 31, 2024
c623c50
Added migration
9larsons Oct 31, 2024
89d54bc
Updated path for migration to account for new release
9larsons Nov 4, 2024
6da5fbf
Merge branch 'main' into add-job-queue
9larsons Nov 4, 2024
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
Next Next commit
Added metadata and queue_entry to jobs schema
  • Loading branch information
9larsons committed Sep 11, 2024
commit fa3773a67f36b2ffbcccfd16336c88305d88e1e3
4 changes: 3 additions & 1 deletion ghost/core/core/server/data/schema/schema.js
Original file line number Diff line number Diff line change
@@ -985,7 +985,9 @@ module.exports = {
started_at: {type: 'dateTime', nullable: true},
finished_at: {type: 'dateTime', nullable: true},
created_at: {type: 'dateTime', nullable: false},
updated_at: {type: 'dateTime', nullable: true}
updated_at: {type: 'dateTime', nullable: true},
metadata: {type: 'text', maxlength: 1000000000, fieldtype: 'long', nullable: true},
9larsons marked this conversation as resolved.
Show resolved Hide resolved
queue_entry: {type: 'integer', nullable: true, unsigned: true}
9larsons marked this conversation as resolved.
Show resolved Hide resolved
},
redirects: {
id: {type: 'string', maxlength: 24, nullable: false, primary: true},