aneoconsulting / ArmoniK.Core

Task manager for ArmoniK (submission, scheduling, IO data, monitoring). Implements API located in https://github.com/aneoconsulting/ArmoniK.Api
https://aneoconsulting.github.io/ArmoniK.Core/
GNU Affero General Public License v3.0
10 stars 8 forks source link

feat: add Pending and Paused status #746

Closed aneojgurhem closed 1 month ago

aneojgurhem commented 1 month ago

I suspect there could be a race condition between task creation / result completion, and pause of a session. But I don't have time to check for now.

I think we keep a consistent state of the session. We read it only once so if it changes during we keep the old state. Marginally, there will be some tasks submitted when the session is paused and some tasks will not be notified the session has been resumed and will submit paused tasks.