sjoerdk / idis

Image DeIdentification Service, a wrapper around RSNA CTP for anonymizion of medical images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduce a pipline study reset function

sjoerdk opened this issue · comments

Is your feature request related to a problem? Please describe.

  • There is pending data for which an IDIS job has been made. The data is in the pending folder.
  • This job get an error status for some reason
  • The pending data is moved to 'errored' in pipeline which moves it to the errored folder
    Now I'd like to retry the IDIS job. However, this will fail, as the source data is no longer in pending
    I can move the data back, but the pipeline will move it back to errored as soon as it finds error status in IDIS

Describe the solution you'd like
Both IDIS and pipeline need to be reset at the same time.
There should be some command for this somewhere in the pipeline. The pipeline can reset the IDIS job and move the data back simultaneously.
I'm unsure of where to put his command though. In the django website? as a CLI command? as a django admin command?

This might be a nice lib to use. I feel at home with click, would be useful to be able to use this in django admin commands
https://github.com/GaretJax/django-click