Update upload page

This commit is contained in:
mitteneer 2024-11-25 12:23:36 -05:00
parent 06fbe78dca
commit 32c89bc12c
9 changed files with 166 additions and 37 deletions

View file

@ -0,0 +1,18 @@
const std = @import("std");
const jetzig = @import("jetzig");
// The `run` function for a job is invoked every time the job is processed by a queue worker
// (or by the Jetzig server if the job is processed in-line).
//
// Arguments:
// * allocator: Arena allocator for use during the job execution process.
// * params: Params assigned to a job (from a request, any values added to `data`).
// * env: Provides the following fields:
// - logger: Logger attached to the same stream as the Jetzig server.
// - environment: Enum of `{ production, development }`.
pub fn run(allocator: std.mem.Allocator, params: *jetzig.data.Value, env: jetzig.jobs.JobEnv) !void {
_ = allocator;
_ = params;
// Job execution code goes here. Add any code that you would like to run in the background.
try env.logger.INFO("Running a job.", .{});
}