You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Killing a task by using the schedulerapi variable is not possible. The following exception is thrown:
[176t0@trydev.activeeon.com;11:23:55] Failed to execute task: javax.script.ScriptException: java.lang.UnsupportedOperationException
[176t0@trydev.activeeon.com;11:23:55] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:211)
[176t0@trydev.activeeon.com;11:23:55] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:149)
[176t0@trydev.activeeon.com;11:23:55] at org.ow2.proactive.scheduler.task.executors.forked.env.ExecuteForkedTaskInsideNewJvm.fromForkedJVM(ExecuteForkedTaskInsideNewJvm.java:88)
[176t0@trydev.activeeon.com;11:23:55] at org.ow2.proactive.scheduler.task.executors.forked.env.ExecuteForkedTaskInsideNewJvm.main(ExecuteForkedTaskInsideNewJvm.java:78)
[176t0@trydev.activeeon.com;11:23:55] Caused by: org.ow2.proactive.scripting.ScriptException: javax.script.ScriptException: java.lang.UnsupportedOperationException
[176t0@trydev.activeeon.com;11:23:55] at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:159)
[176t0@trydev.activeeon.com;11:23:55] at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:130)
[176t0@trydev.activeeon.com;11:23:55] at javax.script.AbstractScriptEngine.eval(AbstractScriptEngine.java:249)
[176t0@trydev.activeeon.com;11:23:55] at org.ow2.proactive.scripting.Script.execute(Script.java:312)
[176t0@trydev.activeeon.com;11:23:55] at org.ow2.proactive.scripting.ScriptHandler.handle(ScriptHandler.java:76)
[176t0@trydev.activeeon.com;11:23:55] at org.ow2.proactive.scheduler.task.executors.InProcessTaskExecutor.execute(InProcessTaskExecutor.java:207)
[176t0@trydev.activeeon.com;11:23:55] ... 3 more
The schedulerapi is an instance of SchedulerNodeClient class. This last forwards internally to an instance of SchedulerClient. SchedulerClient extends ClientBase but does not override killTask like for other methods. Since the default behaviour from ClientBase is throw new UnsupportedOperationException();, the task is not killed.
In summary, it looks like it was forgotten to override killTask in SchedulerClient.
Tests should be added for all methods in these clients.
The text was updated successfully, but these errors were encountered:
I do not prefer. Adding at least a few tests while fixing an issue is part of a normal process. Furthermore, this was mentioned at the first place when I reported the issue. Creating a new issue will scatter the work and make actions and the general process even more confusing.
Fair enough, but this request "Tests should be added for all methods in these clients" is just too big. There is no such exhaustive test which cover all of the standard scheduler api. It's basically tested through many different tests, because each test requires a complex setup, for example when you call the killTask method, you need to verify that the task has actually been killed, etc, etc.
Killing a task by using the schedulerapi variable is not possible. The following exception is thrown:
Below is a Workflow example:
The schedulerapi is an instance of
SchedulerNodeClient
class. This last forwards internally to an instance ofSchedulerClient
.SchedulerClient
extendsClientBase
but does not overridekillTask
like for other methods. Since the default behaviour fromClientBase
isthrow new UnsupportedOperationException();
, the task is not killed.In summary, it looks like it was forgotten to override
killTask
inSchedulerClient
.Tests should be added for all methods in these clients.
The text was updated successfully, but these errors were encountered: