Initial file-ingestion service
REST endpoint (Oxygen.jl POST /upload, multipart) that spools uploaded files to disk, enqueues lightweight references onto a bounded thread-safe work queue, and hands off immediately (202 + job IDs; 503 when full). A configurable pool of worker threads pulls jobs off the queue, logs the received filename (placeholder for real processing), and moves files to done/ on success or failed/ on error. - Queue behind an enqueue!/dequeue!/close! seam for a future RabbitMQ swap - Startup recovery: re-enqueues leftover files in spool/ - Graceful drain on SIGINT and SIGTERM (via atexit) - Env-var config; filenames sanitized + UUID-prefixed on disk Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
4
bin/server.jl
Normal file
4
bin/server.jl
Normal file
@@ -0,0 +1,4 @@
|
||||
#!/usr/bin/env julia
|
||||
# Entry point. Run with: julia --project -t auto bin/server.jl
|
||||
using FileServer
|
||||
FileServer.run()
|
||||
Reference in New Issue
Block a user