2e86a723c6
* feat(fileimport-service): add next gen file importer * feat(fileimports): integrate server and fileimporter * chore(dui3): remove leftover artifacts * fix(server): test typing fixes * fix(fileimports): test and pr comment fixes * feat(fileimports: moare test fixes * fix(fileimports): tests and yarn dedupe
25 lines
526 B
TypeScript
25 lines
526 B
TypeScript
import { REDIS_URL } from '../src/nextGen/config.js'
|
|
import { initializeQueue } from '@speckle/shared/queue'
|
|
import { JobPayload } from '@speckle/shared/workers/fileimport'
|
|
|
|
const jobQueue = await initializeQueue<JobPayload>({
|
|
queueName: 'fileimport-service-jobs',
|
|
redisUrl: REDIS_URL
|
|
})
|
|
|
|
await jobQueue.add({
|
|
serverUrl: '',
|
|
token: '',
|
|
jobId: '1',
|
|
projectId: '',
|
|
modelId: '',
|
|
blobId: '',
|
|
fileName: 'railing.ifc',
|
|
fileType: 'ifc',
|
|
timeOutSeconds: 100000000000
|
|
})
|
|
|
|
console.log('published')
|
|
|
|
process.exit()
|