Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • bob.pipelines bob.pipelines
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4
    • Issues 4
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • bob
  • bob.pipelinesbob.pipelines
  • Issues
  • #39

Closed
Open
Created Nov 29, 2021 by Manuel Günther@mguentherMaintainer

Passing "resources" to dask_jobqueue.core.Job raises an exception

When loading the resource sge, the following error is thrown:

File ".../bob/pipelines/distributed/sge.py", line 57, in __init__
    super().__init__(
TypeError: __init__() got an unexpected keyword argument 'resources'

Tracing down the error, it seems that you are passing the resources: https://gitlab.idiap.ch/bob/bob.pipelines/-/blob/d8162ffc4fa072a14a8a4d7ac3b558de464a56ef/bob/pipelines/distributed/sge.py#L347 as a kwargs to __init__, which are simply passed on to the base class constructor: https://gitlab.idiap.ch/bob/bob.pipelines/-/blob/d8162ffc4fa072a14a8a4d7ac3b558de464a56ef/bob/pipelines/distributed/sge.py#L58

I would recommend to have resources as a regular parameter in __init__ so that it is not passed on to the base class constructor.

Assignee
Assign to
Time tracking