Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
officejs
Commits
0e0a5cb0
Commit
0e0a5cb0
authored
May 22, 2012
by
Tristan Cavelier
Committed by
Sebastien Robin
Jun 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add max_wait_time to JIOGlobals
This will set the maximum duration (in ms) a job may wait for.
parent
4880ef9e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
OfficeJS/src/jio.js
OfficeJS/src/jio.js
+7
-3
No files found.
OfficeJS/src/jio.js
View file @
0e0a5cb0
...
@@ -174,7 +174,8 @@ var JIO =
...
@@ -174,7 +174,8 @@ var JIO =
},
},
'
localStorage
'
:
null
,
// where the browser stores data
'
localStorage
'
:
null
,
// where the browser stores data
'
queueID
'
:
1
,
'
queueID
'
:
1
,
'
storageTypeObject
'
:
{}
// ex: {'type':'local','creator': fun ...}
'
storageTypeObject
'
:
{},
// ex: {'type':'local','creator': fun ...}
'
max_wait_time
'
:
10000
},
},
// end jio globals
// end jio globals
////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////
...
@@ -761,9 +762,12 @@ var JIO =
...
@@ -761,9 +762,12 @@ var JIO =
// Change the job status to wait for time.
// Change the job status to wait for time.
// The listener will invoke this job later.
// The listener will invoke this job later.
var
time
=
(
priv
.
job
.
tries
*
priv
.
job
.
tries
*
1000
);
if
(
time
>
jioGlobalObj
.
max_wait_time
)
{
time
=
jioGlobalObj
.
max_wait_time
;
}
priv
.
job
.
status
=
'
wait
'
;
priv
.
job
.
status
=
'
wait
'
;
priv
.
job
.
waitingFor
=
{
'
time
'
:
Date
.
now
()
+
priv
.
job
.
waitingFor
=
{
'
time
'
:
Date
.
now
()
+
time
};
(
priv
.
job
.
tries
*
priv
.
job
.
tries
*
1000
)};
};
};
//// end Private Methods
//// end Private Methods
...
...
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