Move job queue to redis
authorChocobozzz <me@florianbigard.com>
Thu, 25 Jan 2018 14:05:18 +0000 (15:05 +0100)
committerChocobozzz <me@florianbigard.com>
Thu, 25 Jan 2018 17:41:17 +0000 (18:41 +0100)
commit94a5ff8a4a75d75bb9df542a39ce8769e7a7e6a4
tree32a9148e0e4567f0c4ffae0412cbed20b84e8873
parentd765fafc3faf0db9818eb1a07161df1cb1bc0efa
Move job queue to redis

We'll use it as cache in the future.

/!\ You'll loose your old jobs (pending jobs too) so upgrade only when
you don't have pending job anymore.
63 files changed:
README.md
client/src/app/+admin/jobs/jobs-list/jobs-list.component.html
client/src/app/+admin/jobs/jobs-list/jobs-list.component.scss
client/src/app/+admin/jobs/jobs-list/jobs-list.component.ts
client/src/app/+admin/jobs/shared/job.service.ts
config/default.yaml
config/production.yaml.example
package.json
scripts/clean/server/test.sh
scripts/parse-log.ts
server.ts
server/controllers/api/jobs.ts
server/controllers/api/server/follows.ts
server/controllers/api/videos/index.ts
server/helpers/custom-validators/jobs.ts [new file with mode: 0644]
server/helpers/database-utils.ts
server/initializers/constants.ts
server/initializers/database.ts
server/initializers/migrations/0100-activitypub.ts
server/initializers/migrations/0180-job-table-delete.ts [new file with mode: 0644]
server/lib/activitypub/actor.ts
server/lib/activitypub/fetch.ts
server/lib/activitypub/process/process-accept.ts
server/lib/activitypub/process/process-follow.ts
server/lib/activitypub/send/misc.ts
server/lib/activitypub/send/send-accept.ts
server/lib/activitypub/send/send-announce.ts
server/lib/activitypub/send/send-create.ts
server/lib/activitypub/send/send-follow.ts
server/lib/activitypub/send/send-like.ts
server/lib/activitypub/send/send-undo.ts
server/lib/job-queue/handlers/activitypub-http-broadcast.ts [new file with mode: 0644]
server/lib/job-queue/handlers/activitypub-http-fetcher.ts [new file with mode: 0644]
server/lib/job-queue/handlers/activitypub-http-unicast.ts [new file with mode: 0644]
server/lib/job-queue/handlers/utils/activitypub-http-utils.ts [new file with mode: 0644]
server/lib/job-queue/handlers/video-file.ts [new file with mode: 0644]
server/lib/job-queue/index.ts [new file with mode: 0644]
server/lib/job-queue/job-queue.ts [new file with mode: 0644]
server/lib/jobs/activitypub-http-job-scheduler/activitypub-http-broadcast-handler.ts [deleted file]
server/lib/jobs/activitypub-http-job-scheduler/activitypub-http-fetcher-handler.ts [deleted file]
server/lib/jobs/activitypub-http-job-scheduler/activitypub-http-job-scheduler.ts [deleted file]
server/lib/jobs/activitypub-http-job-scheduler/activitypub-http-unicast-handler.ts [deleted file]
server/lib/jobs/activitypub-http-job-scheduler/index.ts [deleted file]
server/lib/jobs/index.ts [deleted file]
server/lib/jobs/job-scheduler.ts [deleted file]
server/lib/jobs/transcoding-job-scheduler/index.ts [deleted file]
server/lib/jobs/transcoding-job-scheduler/transcoding-job-scheduler.ts [deleted file]
server/lib/jobs/transcoding-job-scheduler/video-file-optimizer-handler.ts [deleted file]
server/lib/jobs/transcoding-job-scheduler/video-file-transcoder-handler.ts [deleted file]
server/lib/schedulers/remove-old-jobs-scheduler.ts [new file with mode: 0644]
server/middlewares/validators/jobs.ts [new file with mode: 0644]
server/models/job/job.ts [deleted file]
server/tests/api/check-params/jobs.ts
server/tests/api/server/handle-down.ts
server/tests/api/server/jobs.ts
server/tests/api/videos/multiple-servers.ts
server/tests/real-world/real-world.ts
server/tests/utils/server/jobs.ts
shared/models/job.model.ts
support/doc/dependencies.md
support/doc/development/server/code.md
tsconfig.json
yarn.lock