Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dashboard
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
dashboard
Commits
e8898c23
Commit
e8898c23
authored
2 months ago
by
Konrad Mohrfeldt
Browse files
Options
Downloads
Patches
Plain Diff
fix: disable default timeout for file import states
refs
tank#86
parent
cdbb21f9
No related branches found
No related tags found
No related merge requests found
Pipeline
#8990
passed
2 months ago
Stage: test
Stage: release
Pipeline: aura-tests
#8991
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/stores/files.ts
+2
-2
2 additions, 2 deletions
src/stores/files.ts
with
2 additions
and
2 deletions
src/stores/files.ts
+
2
−
2
View file @
e8898c23
...
@@ -54,7 +54,7 @@ function APIUpload(api: ExtendableAPI<TankFile>, pendingImportFileIds: Ref<Set<T
...
@@ -54,7 +54,7 @@ function APIUpload(api: ExtendableAPI<TankFile>, pendingImportFileIds: Ref<Set<T
requiredState
:
'
running
'
|
'
done
'
,
requiredState
:
'
running
'
|
'
done
'
,
options
:
{
signal
?:
AbortSignal
|
null
;
maxWaitTimeSeconds
?:
number
}
|
undefined
=
undefined
,
options
:
{
signal
?:
AbortSignal
|
null
;
maxWaitTimeSeconds
?:
number
}
|
undefined
=
undefined
,
)
{
)
{
const
maxWaitTimeSeconds
=
options
?.
maxWaitTimeSeconds
??
5
*
60
const
maxWaitTimeSeconds
=
options
?.
maxWaitTimeSeconds
??
Number
.
POSITIVE_INFINITY
const
startTime
=
new
Date
().
getTime
()
/
1000
const
startTime
=
new
Date
().
getTime
()
/
1000
let
waitTime
=
0
let
waitTime
=
0
...
@@ -88,7 +88,7 @@ function APIUpload(api: ExtendableAPI<TankFile>, pendingImportFileIds: Ref<Set<T
...
@@ -88,7 +88,7 @@ function APIUpload(api: ExtendableAPI<TankFile>, pendingImportFileIds: Ref<Set<T
}
}
}
}
throw
new
TimeoutError
(
'
Maximum wait time
pass
ed
'
)
throw
new
TimeoutError
(
'
Maximum wait time
for file import state reach
ed
.
'
)
}
}
function
_uploadFile
(
function
_uploadFile
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment