Skip to content

simex e kill does not mark experiments as killed #171

@bernlu

Description

@bernlu

When launching an experiment with slurm and killing the experiment while running with simex e kill, the experiment stays marked as started.

Example:

$ simex e list
Experiment                                    Instance                            Status
----------                                    --------                            ------
infinite                                      foo                                 [0] not submitted
1 experiments in total

$ simex e launch
Submitting run infinite/foo[0] to slurm partition 'core'
Submitted batch job 70359

$ simex e list
Experiment                                    Instance                            Status
----------                                    --------                            ------
infinite                                      foo                                 [0] started
1 experiments in total

$ simex e kill -f
Killing run infinite/foo[0] with Slurm jobid 70359

$ simex e list
Experiment                                    Instance                            Status
----------                                    --------                            ------
infinite                                      foo                                 [0] started
1 experiments in total

files:
infinite.py

while True:
    pass

experiments.yml

experiments:    
  - name: infinite
    args: [python3, infinite.py]
    stdout: out
    exclusive: true

instances:
  - repo: local
    items:
      - name: foo
        files: []

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions