Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • gridtk gridtk
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • bobbob
  • gridtkgridtk
  • Issues
  • #32
Closed
Open
Issue created Feb 21, 2020 by Manuel Günther@mguentherMaintainer

`jman submit` needs the `--name` argument to be passed

When submitting a job without a name (at lease locally), printing the job list does not work anymore:

$ jman -lvv submit -- xxx
INFO gridtk: Added job '<Job: 1 (1)> | local : submitted -- '[...]/xxx' ' to the database

$ jman ls
  File "[...]/envs/bob/lib/python3.7/site-packages/gridtk/models.py", line 337, in format
    return format.format(self.unique, job_id, queue[:12], status, self.name, command_line)
TypeError: unsupported format string passed to NoneType.__format__

When adding a job name, everything works as expected:

$ jman del
$ jman -lvv submit -n name -- xxx
INFO gridtk: Added job '<Job: 1 (1)  - 'name'> | local : submitted -- '[...]/xxx' ' to the database

$ jman ls
job-id       grid-id          queue        status         job-name    
======  =================  ===========  ============  ================  
  1             1             local      submitted          name        

I suppose that the issue is that None is not supported in a str.format() (at least not in python 3.7).

Assignee
Assign to
Time tracking