1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-17 01:06:46 +01:00
immich/server
Jonathan Jogenfors 4cb0f37918
chore(server): Move library watcher to microservices (#7533)
* move watcher init to micro

* document watcher recovery

* chore: fix lint

* add try lock

* use global library watch lock

* fix: ensure lock stays on

* fix: mocks

* unit test for library watch lock

* move statement to correct test

* fix: correct return type of try lock

* fix: tests

* add library teardown

* add chokidar error handler

* make event strings an enum

* wait for event refactor

* refactor event type mocks

* expect correct error

* don't release lock in teardown

* chore: lint

* use enum

* fix mock

* fix lint

* fix watcher await

* remove await

* simplify typing

* remove async

* Revert "remove async"

This reverts commit 84ab5abac4.

* can now change watch settings at runtime

* fix lint

* only watch libraries if enabled

---------

Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com>
Co-authored-by: Alex Tran <alex.tran1502@gmail.com>
2024-03-07 11:36:53 -06:00
..
bin fix(immich-admin): only 1st argument was passed (#7552) 2024-03-01 07:34:59 -05:00
e2e chore(server): Move library watcher to microservices (#7533) 2024-03-07 11:36:53 -06:00
resources feat: postgres reverse geocoding (#5301) 2023-11-25 18:53:30 +00:00
src chore(server): Move library watcher to microservices (#7533) 2024-03-07 11:36:53 -06:00
test chore(server): Move library watcher to microservices (#7533) 2024-03-07 11:36:53 -06:00
.eslintrc.js chore(server): eslint await-thenable (#7545) 2024-03-05 17:23:06 -05:00
.gitignore feat(web): re-add open graph tags for public share links (#5635) 2023-12-11 13:37:47 -06:00
.prettierignore refactor: open api (#6334) 2024-01-12 07:36:27 -05:00
.prettierrc fix(server): lint import order (#3974) 2023-09-04 21:45:59 +02:00
Dockerfile chore(deps): update base-image to v20240305 (major) (#7682) 2024-03-06 22:22:55 -05:00
nest-cli.json refactor(server)*: tsconfigs (#2689) 2023-06-08 10:01:07 -05:00
package-lock.json chore(deps): update dependency @types/cookie-parser to v1.4.7 (#7661) 2024-03-05 17:31:26 -05:00
package.json fix(deps): update dependency archiver to v7 (#7622) 2024-03-05 12:26:54 -05:00
start-microservices.sh fix: shell scripts (#7189) 2024-02-18 20:57:24 -06:00
start-server.sh fix: shell scripts (#7189) 2024-02-18 20:57:24 -06:00
start.sh fix(server): re-add mimalloc (#7511) 2024-02-28 18:23:48 -05:00
tsconfig.build.json fix: exclude e2e format (#3250) 2023-07-13 21:41:16 -05:00
tsconfig.json chore(server,cli,web): housekeeping and stricter code style (#6751) 2024-02-01 22:18:00 -05:00