Properties
cancelJob
cancelJob: ((jobId, options?) => Effect<void, never, never>)
Type declaration
- (jobId, options?): Effect<void, never, never>
Returns Effect<void, never, never>
deleteJob
deleteJob: ((jobId, options?) => Effect<void, never, never>)
Type declaration
- (jobId, options?): Effect<void, never, never>
Returns Effect<void, never, never>
getJob
getJob: ((jobId, options?) => Effect<default, never, never>)
Type declaration
- (jobId, options?): Effect<default, never, never>
Returns Effect<default, never, never>
insertJob
insertJob: (<K>(queueName,
payload,
options?) => Effect<default, never, never>) Type declaration
- <K>(queueName, payload, options?): Effect<default, never, never>
Type Parameters
- K extends string | number | symbol
Returns Effect<default, never, never>
start
start: (() => Effect<void, never, never>)
Type declaration
- (): Effect<void, never, never>
Returns Effect<void, never, never>
stop
stop: (() => Effect<void, never, never>)
Type declaration
- (): Effect<void, never, never>
Returns Effect<void, never, never>
testUtils
testUtils: { listJobStatuses: ((options?) => Effect<Record<SidetrackJobStatusEnum, number>, never, never>); listJobs: (<K>(options?) => Effect<default[], never, never>); runJob: ((jobId,
options?) => Effect<void, unknown, never>); runJobs: (<K>(options?) => Effect<void, unknown, never>); } Type declaration
listJobStatuses: ((options?) => Effect<Record<SidetrackJobStatusEnum, number>, never, never>)
listJobs: (<K>(options?) => Effect<default[], never, never>)
- <K>(options?): Effect<default[], never, never>
Type Parameters
- K extends string | number | symbol
Returns Effect<default[], never, never>
runJob: ((jobId, options?) => Effect<void, unknown, never>)
- (jobId, options?): Effect<void, unknown, never>
Returns Effect<void, unknown, never>
runJobs: (<K>(options?) => Effect<void, unknown, never>)
- <K>(options?): Effect<void, unknown, never>
Type Parameters
- K extends string | number | symbol
Returns Effect<void, unknown, never>
Automatically run migrations and start polling the DB for jobs