Skip to content

Commit fea1c97

Browse files
chore: wip
1 parent cd078b2 commit fea1c97

File tree

5 files changed

+6
-24
lines changed

5 files changed

+6
-24
lines changed

storage/framework/core/buddy/src/commands/queue.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { CLI, QueueOptions } from '@stacksjs/types'
1+
import type { CLI, CliQueueOptions } from '@stacksjs/types'
22
import process from 'node:process'
33
import { runAction } from '@stacksjs/actions'
44
import { intro, log, outro } from '@stacksjs/cli'
@@ -17,7 +17,7 @@ export function queue(buddy: CLI): void {
1717
.option('-p, --project [project]', descriptions.project, { default: false })
1818
.option('-q, --queue [queue]', descriptions.queue, { default: false })
1919
.option('--verbose', descriptions.verbose, { default: false })
20-
.action(async (options: QueueOptions) => {
20+
.action(async (options: CliQueueOptions) => {
2121
log.debug('Running `buddy queue:work` ...', options)
2222

2323
const perf = await intro('buddy queue:work')

storage/framework/core/types/src/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ export interface MigrateOptions extends CliOptions {
386386
diff?: boolean
387387
}
388388

389-
export interface QueueOptions extends CliOptions {
389+
export interface CliQueueOptions extends CliOptions {
390390
queue?: string
391391
}
392392

storage/framework/core/types/src/queue.ts

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import type { JobOptions } from './cron-jobs'
12
import type { DeepPartial } from './utils'
23

34
export interface QueueOptions {
@@ -35,25 +36,6 @@ export interface QueueOptions {
3536
}
3637
}
3738

38-
export interface JobOptions {
39-
/** Queue to run the job on */
40-
queue?: string
41-
/** Data to be passed to the job */
42-
payload?: any
43-
/** Additional context for the job */
44-
context?: any
45-
/** Maximum number of retry attempts */
46-
maxTries?: number
47-
/** Timeout in seconds */
48-
timeout?: number
49-
/** Backoff timing between retries in seconds */
50-
backoff?: number[]
51-
/** Whether to execute immediately */
52-
immediate?: boolean
53-
/** Custom job options */
54-
[key: string]: any
55-
}
56-
5739
export interface QueueOption extends JobOptions {
5840
delay?: number
5941
}

storage/framework/server-auto-imports.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,4 @@
162162
"UsersTable": true,
163163
"request": true
164164
}
165-
}
165+
}

storage/framework/types/server-auto-imports.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,4 +162,4 @@ declare global {
162162
const Users: typeof import('./../orm/src/models')['Users']
163163
const UsersTable: typeof import('./../orm/src/models')['UsersTable']
164164
const request: typeof import('./../requests')['request']
165-
}
165+
}

0 commit comments

Comments
 (0)