Skip to content

Commit 800115c

Browse files
committed
Reserve job now properly handles NOT_FOUND
1 parent 7dedb9d commit 800115c

File tree

9 files changed

+63
-30
lines changed

9 files changed

+63
-30
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
runs-on: ubuntu-latest
1212
services:
1313
beanstalkd:
14-
image: schickling/beanstalkd
14+
image: ghcr.io/beanstalkd/beanstalkd:latest
1515
ports:
1616
- 11300:11300
1717
steps:

dist/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export declare class JackdClient {
2020
disconnect: () => Promise<void>;
2121
put: (payload: string | object | Buffer, options?: PutOpts) => Promise<string>;
2222
use: (tubeId: string) => Promise<string>;
23-
createReserveHandlers(): [CommandHandler<void>, CommandHandler<Job>];
23+
createReserveHandlers(additionalResponses?: Array<string>): [CommandHandler<void>, CommandHandler<Job>];
2424
decodeAsciiWhenLegacy: (payload: Buffer) => Buffer | string;
2525
reserve: () => Promise<Job>;
2626
reserveWithTimeout: (args_0: number) => Promise<Job>;

dist/index.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 9 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)