jenkinsci / openstack-cloud-plugin

Provision nodes from OpenStack on demand
https://plugins.jenkins.io/openstack-cloud
MIT License
47 stars 83 forks source link

single-use nodes takes too long to be deleted #364

Open eduard-borrego-scytl opened 1 year ago

eduard-borrego-scytl commented 1 year ago

Describe your use-case which is not covered by existing documentation.

I have an slave configured with a retention time of 0, the Help for feature says that the node will be deleted after the first execution of a task:

If set to 0, the slave will be disposed of after the first execution of a task.

Reviewing the source code it's seems like the nodes are deleting by a schedule that is triggered each 10 minutes. I would like to know what the exact approach is and if there is an option to delete the node after the task is executed.

Reference any relevant documentation, other materials or issues/pull requests that can be used for inspiration.

https://github.com/jenkinsci/openstack-cloud-plugin/blob/master/plugin/src/main/resources/jenkins/plugins/openstack/compute/SlaveOptions/help-retentionTime.html

steveames commented 9 months ago

Same as https://github.com/jenkinsci/openstack-cloud-plugin/issues/282 ? There was also a Pull Request that looks to address this: https://github.com/jenkinsci/openstack-cloud-plugin/pull/352