Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
MDANSE
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Scientific Software
MDANSE
Commits
5cffc462
Commit
5cffc462
authored
Jul 26, 2018
by
eric pellegrini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added better error handling when a job fail from the GUI
parent
4fe88cc8
Pipeline
#4248
passed with stages
in 10 minutes and 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
MDANSE/GUI/Plugins/JobPlugin.py
MDANSE/GUI/Plugins/JobPlugin.py
+8
-5
No files found.
MDANSE/GUI/Plugins/JobPlugin.py
View file @
5cffc462
...
...
@@ -41,6 +41,7 @@ import wx.aui as aui
from
MDANSE
import
PLATFORM
,
REGISTRY
from
MDANSE.Framework.InputData.EmptyData
import
EmptyData
from
MDANSE.Framework.Jobs.IJob
import
JobError
from
MDANSE.GUI
import
PUBLISHER
from
MDANSE.GUI.DataController
import
DATA_CONTROLLER
...
...
@@ -119,11 +120,13 @@ class JobPlugin(ComponentPlugin):
else
:
startupinfo
=
None
subprocess
.
check_output
([
sys
.
executable
,
filename
],
stderr
=
subprocess
.
STDOUT
)
time
.
sleep
(
1
)
PUBLISHER
.
sendMessage
(
"msg_start_job"
,
message
=
None
)
try
:
subprocess
.
check_output
([
sys
.
executable
,
filename
],
stderr
=
subprocess
.
STDOUT
)
except
subprocess
.
CalledProcessError
as
e
:
raise
JobError
(
e
.
output
)
else
:
time
.
sleep
(
1
)
PUBLISHER
.
sendMessage
(
"msg_start_job"
,
message
=
None
)
def
on_save
(
self
,
event
=
None
):
...
...
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