Michael Manganiello
f95e0edff4
feat: Add OpenTelemetry integration to file watcher
...
Run file watcher using `opentelemetry-instrument` to enable tracing for
the watcher service.
2025-08-12 11:25:40 -03:00
Michael Manganiello
76db0ab98c
feat: Migrate watcher to use watchfiles library
...
The `watchfiles` library supports event batching, which allows us to
process multiple filesystem changes in a single run.
This change also avoids database calls in the watcher as much as
possible.
2025-08-07 13:28:49 -03:00
Georges-Antoine Assi
c4ea27b6fa
pass in metadata providers enabled
2025-08-07 09:51:18 -04:00
Georges-Antoine Assi
c030d10c05
changes from bot review
2025-08-07 09:43:18 -04:00
Georges-Antoine Assi
836e7358c2
fix issues from code review
2025-08-07 09:34:43 -04:00
Georges-Antoine Assi
7e0cb2272d
run watchdog as a native task
2025-08-06 23:25:47 -04:00
Georges-Antoine Assi
8061db40b2
fix tests and cleanup
2025-08-02 17:55:43 -04:00
Georges-Antoine Assi
0acc9de6e6
add endpoint to fetch task result
2025-08-02 15:25:44 -04:00
Michael Manganiello
f1474582b9
fix: watchdog: Only subscribe to relevant filesystem events
...
The `watchdog` observer supports filtering events based on their type,
so unwanted events don't get dispatched.
2025-07-07 00:35:42 -03:00
zurdi
6f08912fc0
refactor: remove unnecessary logging highlights and improve log messages for clarity
2025-05-09 10:25:11 +00:00
zurdi
14761c2c83
refactor: enhance logging with highlighted output for improved readability
2025-05-09 09:05:59 +00:00
zurdi
49ad99d5e7
refactor: improve logging setup and format across multiple modules for consistency
2025-05-08 22:17:53 +00:00
zurdi
cac9602974
refactor: streamline logging setup and improve log formatting across multiple modules
2025-05-08 17:57:40 +00:00
Georges-Antoine Assi
2859ac04c8
fix pyright issues
2025-01-26 10:57:27 -05:00
Michael Manganiello
7dc7eea34d
feat: Initial Sentry support
...
This change initializes the Sentry SDK, which enables error tracking
when the `SENTRY_DSN` environment variable is set.
Drop-in alternatives to Sentry are also supported, like GlitchTip.
2024-12-27 17:03:45 -03:00
Michael Manganiello
a26168ecc4
fix: Skip scanning task by checking against the correct function name
...
The `scan.py` module was moved to the `sockets` package, but this line
was not updated to reflect that change. This currently causes the
watcher to not skip queuing a new `scan_platforms` task if one is
already scheduled.
2024-10-11 20:40:42 -03:00
Georges-Antoine Assi
a7cf0d389a
run trunk format on all files
2024-05-21 10:18:13 -04:00
Georges-Antoine Assi
2749aaee4a
rename back to old names
2024-05-05 16:59:30 -04:00
Georges-Antoine Assi
9ad28f3294
more refactoring again
2024-05-05 16:32:40 -04:00
Georges-Antoine Assi
def2608c28
refactor db handlers
2024-05-05 15:46:07 -04:00
Georges-Antoine Assi
1a2c914045
refactor handlers out into own files
2024-05-05 12:45:56 -04:00
Georges-Antoine Assi
16db9b03bc
[HOTFIX] Fix nightly scans resetting igdb/moby IDs
2024-04-02 15:22:25 -04:00
Zurdi
450d2593c6
fix read config when updated from UI
2024-02-21 11:44:18 -05:00
Georges-Antoine Assi
f67b984cbb
Hotfix scanning via watcher
2024-02-09 18:16:59 -05:00
Georges-Antoine Assi
2524170db5
fix types + add check for extra watchdog events
2024-02-09 11:06:18 -05:00
Zurdi
93f6cb7651
Merge branch 'feature/manage_config_from_ui' into refactor/backend
2024-01-13 02:17:19 +01:00
Zurdi
4b9e76f550
backend structure refactor
2024-01-12 23:44:27 +01:00
Zurdi
33b6364c8a
endpoints and responses restructured
2024-01-11 23:57:06 +01:00
Zurdi
47a83a525b
config is loaded dinamycally and platform bindings can be removed from UI
2024-01-11 15:26:41 +01:00
Zurdi
fb1c02459e
added methods to add and remove platforms bindings to config manager
2024-01-11 00:29:41 +01:00
Georges-Antoine Assi
5762270f62
Merge branch 'master' into romm-55
2024-01-09 13:06:51 -05:00
Zurdi
eea7e41940
docstrings added to endpoints + organized imports + formatted code
2024-01-09 16:22:31 +01:00
Georges-Antoine Assi
a7bf12c6ed
Refactor how config is stored and loaded
2023-11-14 09:14:27 -05:00
Georges-Antoine Assi
ed010944fa
Add status of tasks to control panel
2023-08-26 23:21:42 -04:00
Georges-Antoine Assi
a5f0942672
Refactor prediodic tasks into utils class
2023-08-26 21:38:27 -04:00
Georges-Antoine Assi
6a90db7f1b
Fix watcher to use scheduler
2023-08-26 19:55:13 -04:00
Georges-Antoine Assi
0a756f8fd8
Add watchdog and watch roms
2023-08-26 19:28:36 -04:00