mirror of
https://github.com/jetzig-framework/jetzig.git
synced 2025-05-14 22:16:08 +00:00

Use in-memory KV store (JetKV) for simple job queue. Build script generates an array of Zig modules in `src/app/jobs/` and stores their name + run function (`run(allocator, params, logger)`). View functions schedule jobs with arbitrary params. Thread pool spawns a (configurable) number of workers and pops jobs from the queue, then invokes the appropriate run function.
32 lines
1.2 KiB
Zig
32 lines
1.2 KiB
Zig
.{
|
|
.name = "jetzig",
|
|
.version = "0.0.0",
|
|
.dependencies = .{
|
|
.zmd = .{
|
|
.url = "https://github.com/jetzig-framework/zmd/archive/901e4ce55cdbfd82c42cfd4feb3a1682dab4b418.tar.gz",
|
|
.hash = "12207d49df326e0c180a90fa65d9993898e0a0ffd8e79616b4b81f81769261858856",
|
|
},
|
|
.zmpl = .{
|
|
.url = "https://github.com/jetzig-framework/zmpl/archive/1fcdfc42444224d43eb6e5389d9b4aa239fcd787.tar.gz",
|
|
.hash = "1220f7bc1e2b2317790db37b7dec685c7d9a2ece9708108a4b636477d996be002c71",
|
|
},
|
|
.args = .{
|
|
.url = "https://github.com/MasterQ32/zig-args/archive/01d72b9a0128c474aeeb9019edd48605fa6d95f7.tar.gz",
|
|
.hash = "12208a1de366740d11de525db7289345949f5fd46527db3f89eecc7bb49b012c0732",
|
|
},
|
|
.jetkv = .{
|
|
.url = "https://github.com/jetzig-framework/jetkv/archive/a6fcc2df220c1a40094e167eeb567bb5888404e9.tar.gz",
|
|
.hash = "12207bd2d7465b33e745a5b0567172377f94a221d1fc9aab238bb1b372c64f4ec1a0",
|
|
},
|
|
},
|
|
|
|
.paths = .{
|
|
"",
|
|
"build.zig",
|
|
"build.zig.zon",
|
|
"src/jetzig",
|
|
"LICENSE",
|
|
"README.md",
|
|
},
|
|
}
|