Add MariaDB queue table. Fix Bugs
This commit is contained in:
Vendored
+16
@@ -0,0 +1,16 @@
|
||||
import type { BunMariaDBConfig, DBResponseObject } from "../../types";
|
||||
type Params<Table extends string = string> = {
|
||||
table: Table;
|
||||
id: number | string;
|
||||
/** `queue_lock_token` from the claimed row */
|
||||
lock_token: string;
|
||||
/** New lease length, counted from now. Defaults to the table's `lease_ms` */
|
||||
lease_ms?: number;
|
||||
config?: BunMariaDBConfig;
|
||||
};
|
||||
/**
|
||||
* Extend the lease on a claimed job, for jobs that run longer than the
|
||||
* lease given to `claim`.
|
||||
*/
|
||||
export default function QueueExtend<Table extends string = string>({ table, id, lock_token, lease_ms, config, }: Params<Table>): Promise<DBResponseObject>;
|
||||
export {};
|
||||
Reference in New Issue
Block a user