Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
a2fa8c0f
Unverified
Commit
a2fa8c0f
authored
Oct 17, 2022
by
Matthew Slipper
Committed by
GitHub
Oct 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
op-node: Increase step timeout (#3713)
parent
a88ba67d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
state.go
op-node/rollup/driver/state.go
+2
-2
No files found.
op-node/rollup/driver/state.go
View file @
a2fa8c0f
...
@@ -266,7 +266,7 @@ func (s *Driver) eventLoop() {
...
@@ -266,7 +266,7 @@ func (s *Driver) eventLoop() {
s
.
log
.
Warn
(
"not creating block, node is deriving new l2 data"
,
"head_l1"
,
l1Head
)
s
.
log
.
Warn
(
"not creating block, node is deriving new l2 data"
,
"head_l1"
,
l1Head
)
break
break
}
}
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
10
*
time
.
Second
)
ctx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
20
*
time
.
Minute
)
err
:=
s
.
createNewL2Block
(
ctx
)
err
:=
s
.
createNewL2Block
(
ctx
)
cancel
()
cancel
()
if
err
!=
nil
{
if
err
!=
nil
{
...
@@ -309,7 +309,7 @@ func (s *Driver) eventLoop() {
...
@@ -309,7 +309,7 @@ func (s *Driver) eventLoop() {
s
.
metrics
.
SetDerivationIdle
(
false
)
s
.
metrics
.
SetDerivationIdle
(
false
)
s
.
idleDerivation
=
false
s
.
idleDerivation
=
false
s
.
log
.
Debug
(
"Derivation process step"
,
"onto_origin"
,
s
.
derivation
.
Origin
(),
"attempts"
,
stepAttempts
)
s
.
log
.
Debug
(
"Derivation process step"
,
"onto_origin"
,
s
.
derivation
.
Origin
(),
"attempts"
,
stepAttempts
)
stepCtx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
time
.
Second
*
10
)
// TODO pick a timeout for executing a single step
stepCtx
,
cancel
:=
context
.
WithTimeout
(
ctx
,
20
*
time
.
Minute
)
// TODO pick a timeout for executing a single step
err
:=
s
.
derivation
.
Step
(
stepCtx
)
err
:=
s
.
derivation
.
Step
(
stepCtx
)
cancel
()
cancel
()
stepAttempts
+=
1
// count as attempt by default. We reset to 0 if we are making healthy progress.
stepAttempts
+=
1
// count as attempt by default. We reset to 0 if we are making healthy progress.
...
...
Write
Preview
Markdown
is supported
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