Commit graph

53 commits

Author SHA1 Message Date
asonix e302df7e39 Add more poll timers, spawn process from background threads 2024-03-09 15:19:13 -06:00
asonix 03bd3cbe2f Even more piping 2024-02-24 19:27:34 -06:00
asonix 13fc0df31a More piping 2024-02-24 19:07:48 -06:00
asonix 2074334131 Switch more commands to be driven via STDIN 2024-02-24 14:02:41 -06:00
asonix ad51e6cd9f Avoid writing blurhashed images to tmp 2024-02-24 13:16:25 -06:00
asonix 227e9cc3a7 BytesReader: use built-in state tracking 2024-02-22 17:49:16 -06:00
asonix 0ebee2a07c cargo fix 2024-02-22 16:03:49 -06:00
asonix c1e651c01a Use BytesStream in more places 2024-02-22 16:03:04 -06:00
asonix 71d81681d5 It compiles 2024-02-04 15:45:47 -06:00
asonix 85f6356025 Fix images with trailing bytes failing to upload 2024-02-03 19:50:00 -06:00
asonix ca34a15cd3 Debug-log command arguments 2024-01-07 10:01:02 -06:00
asonix dc90e00324 Update metrics to 0.22 (plus mechanical changes) 2023-12-26 18:06:38 -06:00
asonix 6d259a0eea Don't kill already-exited processes, don't log tmp_dir when fetching details 2023-12-23 13:29:30 -06:00
asonix 6fa79b9188 Do more cleanup inline 2023-12-23 11:58:20 -06:00
asonix b938b09901 Apply cargo fix 2023-12-22 20:54:02 -06:00
asonix 5624671cbf Rework ProcessRead to require a closure for using the internal AsyncRead 2023-12-22 20:52:58 -06:00
asonix aa8fe7f3e8 Clean unused imports 2023-12-22 13:20:36 -06:00
asonix 0dbe722524 Don't poll handle if closed, prevents panic if child wait finishes before all bytes are read 2023-12-22 13:20:21 -06:00
asonix b94ba5fcfc Inline process background future, clean tracing a bit 2023-12-22 13:12:19 -06:00
asonix db43392a3b Simplify process future by removing explicit channel, don't lock mutex as often 2023-12-22 12:03:05 -06:00
asonix c9155f7ce7 Include not_found key in repo migration, rework ProcessRead, add timeout to 0.4 migration 2023-12-17 23:15:27 -06:00
asonix 15189d293b clippy 2023-11-09 18:26:57 -06:00
asonix f61dac8187 Attempt to clean stray magick files
This change sets a unique temp directory for each invocation of imagemagick and spawns a task to remove that directory after the command terminates
2023-11-09 18:20:59 -06:00
asonix c795c1edfa Replace most of actix-rt with tokio, give names to tasks 2023-10-20 19:08:11 -05:00
asonix 745e990fa0 Remove direct dependency on actix-rt and actix-server 2023-09-24 15:45:10 -05:00
asonix 3bd0f78e75 Use with_timeout for all timeouts 2023-09-04 21:58:57 -05:00
asonix a43de122f9 postgres: add already-claimed case, general: tracing paranoia 2023-09-03 21:30:47 -05:00
asonix ba3a23ed43 Add error codes 2023-09-01 20:51:01 -05:00
asonix fee4ed1e3e Add process timeout 2023-08-05 12:41:06 -05:00
asonix 77cdeab57e Improve metrics, add job metrics 2023-07-22 21:11:28 -05:00
asonix ce0df080f4 Add prometheus metrics 2023-07-22 16:47:59 -05:00
asonix 5e8ab7856d Extract Status errors into command-specific errors 2023-07-17 13:30:08 -05:00
asonix a751d92436 Port error changes to 0.5 2023-07-16 21:51:14 -05:00
asonix ec6c9aac1e Better discovery validation, proper invoking of imagemagick 2023-07-13 19:21:57 -05:00
asonix 9b1dd1f8c3 Copy process from 0.4.x branch 2023-07-13 19:21:28 -05:00
asonix f5c39f9be5 Typo, error formatting 2023-07-10 17:15:43 -05:00
asonix 9004ecaadf Better classify process related errors 2023-07-10 15:29:41 -05:00
asonix 22e526fd2a Allow type underscore (probably in instrument) 2023-06-01 17:33:43 -05:00
asonix 669b3fb86f Fix webp metadata stripping, more tracing cleanup 2022-10-01 22:47:52 -05:00
asonix 718f09c43a Clean tracing, simplify validation, rename InputFormat -> VideoFormat 2022-10-01 21:17:18 -05:00
asonix 80c83eb491 Add ffprobe for details inspection - vastly improve video detection speed 2022-09-25 20:39:09 -05:00
asonix c9a74a73ca Reduce redundancy in process module 2022-09-25 17:35:52 -05:00
asonix 50d118a2a7 Implement image pre-processing on upload 2022-09-25 15:17:33 -05:00
Aode (lion) 8781bc8f28 Add follows-from relation for background tasks 2022-04-07 13:28:28 -05:00
Aode (lion) e493e90dd4 Defensive tracing 2022-04-07 12:56:40 -05:00
Aode (lion) c80d207a87 Improve tracing 2022-04-06 21:40:49 -05:00
Aode (lion) 6ed592c432 In Progress: process jobs
- Is this a good idea? it definitely will make interacting with pict-rs harder. Maybe it's best not to do this
2022-04-01 16:51:12 -05:00
Aode (lion) e209a282d9 No more follows-from for process 2021-12-06 21:11:43 -06:00
Aode (lion) 11739cd42c Remove fancy span following code 2021-12-06 20:35:22 -06:00
Aode (lion) 920f1f154c Improve follows-from and parent span relationships 2021-12-06 12:43:03 -06:00