Job can't be cancelled

99 views
Skip to first unread message

Zhiming Su

unread,
Mar 13, 2018, 9:26:04 PM3/13/18
to schedulix
Hi
       As shown, when the JObserver is closed, the job is always this state and cannot be canceled.


Best regards
Suzm

Dieter Stubler

unread,
Mar 14, 2018, 3:17:10 AM3/14/18
to schedulix
Hello Suzm,

this behaviour is easy to explain.
When stoppin a jobsever, the schedulix server will not longer know the state of jobs currently executed by this jobserver. 
So runing jobs will be be regarded as still running until the jobsever will start again and report the jobs state to the schedulix server again.

Cancelling a job which is still running will result in a CANCELLING state until the jobserver reports the job to be finished.

To solve your problem there are 3 possibilities:

1. Start your jobsever and wait until the job ist finished (or kill the job)

With the jobserver active again the state of the job will reported again.

2. Deregister the shutdown jobserver

This is a way of telling schedulix that the system is not longer up.
You ca do this in the GUI by selecting your jobserver in 'Jobserver and Resources' and pressing the 'Deregister' button (The one with the buring server).
All running jobs of this jobserver will be put into state 'BROKEN_FINISHED' since we do not have an exit state for those jobs in this case.
CANCELLING jobs will become CANCELLED then.

3. Alter the jobs state using sdmsh

As an ADMIN you can connect to the schedulix server using sdmsh and enter the command

alter job 60821 with state = finished, exit code = 1;

The job will be finished and CANCELLED.

Regards
Dieter

Zhiming Su

unread,
Mar 14, 2018, 6:31:34 AM3/14/18
to schedulix
Hi Dieter,
          Thank you for your reply,let me understand
          I want to know, are we a chat tool, not a forum?For example, telegram, WeChat

Regards
Suzm

Dieter Stubler

unread,
Mar 14, 2018, 7:28:02 AM3/14/18
to schedulix
Hi Suzm,

This is a forum but if we've got spare time, we try to answer quickly :-)
Did my post help to solve your problem ?

Regards
Dieter

Zhiming Su

unread,
Mar 14, 2018, 7:45:53 AM3/14/18
to schedulix
Hi Dieter,
      Your article is helpful, I just think it's convenient to have a chat tool

Beste Regarts
Suzm
Reply all
Reply to author
Forward
0 new messages