Skip to content

feature request: mxqkill #403

Closed
arndt opened this issue Aug 12, 2024 · 9 comments
Closed

feature request: mxqkill #403

arndt opened this issue Aug 12, 2024 · 9 comments

Comments

@arndt
Copy link

arndt commented Aug 12, 2024

As a user I sometimes want to kill/cancel my jobs as fast as possible. Especially I do not want to look up a group id and type it into again. Why not have something like

mxqkill -all

which would kill all jobs which it can kill.

Note: mxqkill -u USER does not work for normal users.

@donald
Copy link
Collaborator

donald commented Aug 12, 2024

Sounds sensible. I would just opt for (-A | --all) instead of -all . This is not Java or tar but nice longopts :-)

@arndt
Copy link
Author

arndt commented Aug 12, 2024

even better - you may probably want disable this option for privileged users, or not - no risk no fun

@donald
Copy link
Collaborator

donald commented Aug 15, 2024

Hmmm. Is it better to kill the jobs or the groups or to have both options? If the later, -A | --all is not enough. But to map --all-jobs and --all-groups to short options is not straight forward.

--group-id maps to -g' but --job-idmaps to uppercase-J` (probably to mach mxqdump, don't remember).

Maybe like this:

mxqkill -A or mxqkill --all to kill all groups
mxqkill -Aj or mxqkill --all --jobs to kill all jobs

That would be in line with mxqdump.

Or just don't defined short options for --all-groups and --all-jobs ?

@pmenzel
Copy link
Contributor

pmenzel commented Aug 15, 2024

Is it better to kill the jobs or the groups or to have both options?

Please excuse my ignorance. What is the difference? Would “kill the job” mean to kill the running jobs?

@arndt
Copy link
Author

arndt commented Aug 15, 2024

Is one of these options faster than the other? Then I would opt for the fastest option to be mxqkill --all.

@donald
Copy link
Collaborator

donald commented Aug 15, 2024

Is it better to kill the jobs or the groups or to have both options?

Please excuse my ignorance. What is the difference? Would “kill the job” mean to kill the running jobs?

If the group is cancelled, the group goes into to the status 'CANCELLED' and is no longer open for new jobs. If you submit again with with same parameters, a new group would be created. This is more or less only a difference for the statistics.

As we only would cancel active (running or pending) jobs, we should also only cancel active groups (those with running or pending jobs), and not really all (historical) groups of the user.

Maybe we should just go for the jobs and not for the groups for now.

Is one of these options faster than the other? Then I would opt for the fastest option to be mxqkill --all.

All jobs is faster in theory only, but it shouldn't make a noticeable difference in the real world.

@arndt
Copy link
Author

arndt commented Aug 15, 2024

Maybe we should just go for the jobs and not for the groups for now.

Agreed

@donald
Copy link
Collaborator

donald commented Aug 15, 2024

btw: You can open mxq-related issue at https://github.molgen.mpg.de/mariux64/mxq/issues ,too. Next time :-)

@donald
Copy link
Collaborator

donald commented Aug 22, 2024

Go ahead an kill all your active jobs with mxqkill -A. Be aware, that this includes mxqi jobs.

@donald donald closed this as completed Aug 22, 2024
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants