User story #6099
closed
We should be able to call actions as many times as we want
Added by Benoît PECCATTE almost 10 years ago.
Updated over 2 years ago.
Description
Some promises are not state promises but action promises.
Namely service_restart and service_reloas and maby some others are action promises.
Unlike state promises that can be checked and called only once, we should be able to call such promises as many times as we want.
For this purpose, https://dev.cfengine.com/issues/6893 must be solved, and we should use ifelapsed 0 in action promises.
- Category set to Generic methods
- Target version changed from 0.x to master
- Target version changed from master to 4.2.2
- Target version changed from 4.2.2 to 4.2.3
- Target version changed from 4.2.3 to 4.2.4
- Target version changed from 4.2.4 to Ideas (not version specific)
- Target version changed from Ideas (not version specific) to 5.0.14
- Status changed from New to In progress
- Assignee set to Félix DALLIDET
- Target version changed from 5.0.14 to 5.0.15
- Effort required set to Medium
We should define a dedicated bundle to save the current GM index call:
methods:
"Variable string_context_${report_data.directive_id}_0" usebundle => _method_reporting_context("Variable string", "cat");
^
|
current GM index call
This way, we could use this index, concatenated with the directive id to make GM/promiser re-usable by adding comments, ifvarclass, etc...
based on: directive_id_index
In the same fashion suggested in a mix of: 15783 and 16078.
It solves both issues.
- Target version changed from 5.0.15 to 5.0.16
- Target version changed from 5.0.16 to 5.0.17
- Target version changed from 5.0.17 to 5.0.18
- Target version changed from 5.0.18 to 6.2.0~beta1
- Target version changed from 6.2.0~beta1 to 6.2.0~rc1
- Target version changed from 6.2.0~rc1 to 7.0.0~beta1
- Status changed from In progress to New
- Target version changed from 7.0.0~beta1 to 7.0.0~beta2
- Project changed from 41 to Rudder
- Category changed from Generic methods to Generic methods
- Target version changed from 7.0.0~beta2 to 7.0.0~beta3
- Target version changed from 7.0.0~beta3 to 7.1.0~beta1
- Target version changed from 7.1.0~beta1 to 7.1.0~beta2
- Target version changed from 7.1.0~beta2 to 7.1.0~rc1
- Status changed from New to Resolved
Also available in: Atom
PDF