Opened 14 years ago
Closed 14 years ago
#1508 closed task (fixed)
Hide "Restart job" for failed jobs if the plug-in doesn't support restarting
Reported by: | Nicklas Nordborg | Owned by: | Martin Svensson |
---|---|---|---|
Priority: | minor | Milestone: | BASE 2.16 |
Component: | core | Version: | |
Keywords: | Cc: |
Description
For most jobs this is not a problem, but some plug-ins require parameters that are part of the current gui context. Those parameters doesn't survive a failure. The best example is the "Table exporter" plug-in which throws a NullPointerException:
java.lang.NullPointerException at net.sf.basedb.clients.web.plugins.SimpleExport.performExport(SimpleExport.java:328) at net.sf.basedb.core.plugin.AbstractExporterPlugin.run(AbstractExporterPlugin.java:144) at net.sf.basedb.core.PluginExecutionRequest.invoke(PluginExecutionRequest.java:110) at net.sf.basedb.core.InternalJobQueue$JobRunner.run(InternalJobQueue.java:510) at java.lang.Thread.run(Thread.java:619)
A possible solution would be to define a tagging PluginType
interface (eg. NonRestartable
). The gui can check if this interface is implemented and then hide the Restart job
and Reconfigure job
buttons (in the View job dialog).
Change History (2)
comment:1 by , 14 years ago
Owner: | changed from | to
---|---|
Status: | new → assigned |
comment:2 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
(In [5404]) Fixes #1508 Hide "Restart job" for failed jobs if the plug-in doesn't support restarting