Skip to content

mxqkill -u returns usage information #46

Closed
pmenzel opened this issue Aug 16, 2016 · 2 comments · Fixed by #151
Closed

mxqkill -u returns usage information #46

pmenzel opened this issue Aug 16, 2016 · 2 comments · Fixed by #151

Comments

@pmenzel
Copy link
Contributor

pmenzel commented Aug 16, 2016

Using mxqkill to terminate all jobs from a user, currently doesn’t work.

$ mxqkill --version
mxqkill - MXQ v0.24.0 (beta)
  by Marius Tolzmann <marius.tolzmann@molgen.mpg.de> 2013-2016
     and Donald Buczek <buczek@molgen.mpg.de> 2015-2016
  Max Planck Institute for Molecular Genetics - Berlin Dahlem
$ sudo mxqdump -j -u wwwutz | tail -1
job=wwwutz(130):11236:2817085 host_pid=25460 server=venustraphobie.molgen.mpg.de::main group_name=shallot-molgenmpgde-33 waittime=99s runtime=37s utime=0s stime=0s runtime_requested=840s time_load=4% memory_requested=1048576kiB max_memory=0kiB max_rss=0kiB memory_load=0% threads=8 slots=8 status=running(200) stats_status=0 restart=never workdir=/scratch/cluster/wwwutz/onion command=/scratch/cluster/wwwutz/onion/jobwrapper.sh\08\0-x\0840\0molgenmpgde\0
$ sudo mxqkill -u wwwutz
mxqkill - MXQ v0.24.0 (beta)
  by Marius Tolzmann <marius.tolzmann@molgen.mpg.de> 2013-2016
     and Donald Buczek <buczek@molgen.mpg.de> 2015-2016
  Max Planck Institute for Molecular Genetics - Berlin Dahlem

Usage:
  mxqkill [options]
  mxqkill [options] --group-id=GROUPID

Synopsis:
  kill/cancel jobs running in MXQ cluster

options:

  -g, --group-id=GROUPID   cancel/kill group <GROUPID>
  -J, --job-id=JOBID       cancel job <JOBID>
  -u, --user=NAME|UID      cancel group for user. (root only)

  -v, --verbose   be more verbose
      --debug     set debug log level (default: warning log level)

  -V, --version
  -h, --help

Change how to connect to the mysql server:

  -M, --mysql-default-file[=MYSQLCNF]     (default: /etc/mxq/mysql.cnf)
  -S, --mysql-default-group[=MYSQLGROUP]  (default: mxqclient)

Environment:
  MXQ_MYSQL_DEFAULT_FILE   change default for MYSQLCNF
  MXQ_MYSQL_DEFAULT_GROUP  change default for MYSQLGROUP
@mariux
Copy link
Contributor

mariux commented May 10, 2017

can this be reproduced as root user?

@mariux
Copy link
Contributor

mariux commented May 10, 2017

to answer my own question: yes it can be.. ;)

fact is... -u just executes mxqkill on behalf of the user... not to kill all jobs of the user... so -u is not supposed to be a filter... which is just badly documented... you need to add filter for group or job to actually kill..

https://github.molgen.mpg.de/mariux64/mxq/blob/master/mxqkill.c#L377

@donald donald mentioned this issue Jan 10, 2024
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants