Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
Printrun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
machinery
Printrun
Commits
461fa29f
Commit
461fa29f
authored
Jul 08, 2013
by
D1plo1d
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding a try, except to prontserve's print queue loop to try and flush out some bugs.
parent
27a266b2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
22 deletions
+26
-22
prontserve.py
prontserve.py
+26
-22
No files found.
prontserve.py
View file @
461fa29f
...
...
@@ -580,6 +580,7 @@ class Prontserve(pronsole.pronsole, EventEmitter):
# A better solution would be one in which a print_finised event could be
# listend for asynchronously without polling.
p
=
self
.
p
try
:
if
self
.
printing_jobs
and
p
.
printing
==
False
and
p
.
online
:
if
self
.
current_job
!=
None
:
self
.
update_job_progress
(
100
)
...
...
@@ -604,6 +605,9 @@ class Prontserve(pronsole.pronsole, EventEmitter):
# Updating the job progress
self
.
update_job_progress
(
self
.
print_progress
())
except
Exception
as
ex
:
print
traceback
.
format_exc
()
#print "print loop"
next_timeout
=
time
.
time
()
+
0.3
gen
.
Task
(
self
.
ioloop
.
add_timeout
(
next_timeout
,
self
.
run_print_queue_loop
))
...
...
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