Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Open Subsurface Data Universe Software
Platform
Domain Data Mgmt Services
Seismic
Seismic DMS Suite
seismic-dms-service
Commits
03162fa7
Commit
03162fa7
authored
Mar 31, 2021
by
Diego Molteni
Browse files
fixed transfer job
parent
4ec78bde
Pipeline
#34134
failed with stages
in 2 minutes and 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/cloud/shared/queue.ts
View file @
03162fa7
...
...
@@ -10,7 +10,7 @@ export class StorageJobManager {
public
static
copyJobsQueue
:
Bull
.
Queue
public
static
async
setup
(
cacheParams
:
{
ADDRESS
:
string
,
PORT
:
number
,
KEY
?:
string
,
DISABLE_TLS
?:
boolean
})
{
public
static
setup
(
cacheParams
:
{
ADDRESS
:
string
,
PORT
:
number
,
KEY
?:
string
,
DISABLE_TLS
?:
boolean
})
{
const
redisx
=
{
host
:
cacheParams
.
ADDRESS
,
...
...
@@ -33,7 +33,8 @@ export class StorageJobManager {
})
// setup job processing callback
await
StorageJobManager
.
copyJobsQueue
.
process
(
50
,
(
input
)
=>
{
// tslint:disable-next-line: no-floating-promises
StorageJobManager
.
copyJobsQueue
.
process
(
50
,
(
input
)
=>
{
return
StorageJobManager
.
copy
(
input
)
})
...
...
src/server/server-start.ts
View file @
03162fa7
...
...
@@ -37,7 +37,7 @@ async function ServerStart() {
// tslint:disable-next-line
console
.
log
(
'
- Initializing storage transfer deamon
'
)
await
StorageJobManager
.
setup
({
StorageJobManager
.
setup
({
ADDRESS
:
Config
.
DES_REDIS_INSTANCE_ADDRESS
,
PORT
:
Config
.
DES_REDIS_INSTANCE_PORT
,
KEY
:
Config
.
DES_REDIS_INSTANCE_KEY
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment