nextflow-io / nf-nomad

Hashicorp Nomad executor plugin for Nextflow
https://nextflow-io.github.io/nf-nomad/
Apache License 2.0
2 stars 2 forks source link

Improve the polling logic for Nomad Job latest allocation #21

Closed abhi18av closed 3 months ago

abhi18av commented 4 months ago

The current job polling logic (in v0.0.2) focuses on the job status at the moment, whereas within Nomad, one job can have multiple allocations.

When observed on Tower https://tower.nf/orgs/ABHINAVSHARMA-ORG/workspaces/nf-nomad-dev/watch/59CibE1sgsySZI , the count for runnings jobs is not decremented when they transition to Succeeded stage.

image