Skip to content

Commit 680e924

Browse files
authored
Use defined default values in configuration mapping
1 parent eb4b42f commit 680e924

1 file changed

Lines changed: 19 additions & 8 deletions

File tree

scripts/config_mapping/lifecycle_config.py

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"working_dir": "/tmp",
1717
"ready_recovery_action": {
1818
"restart": {
19-
"number_of_attempts": 1,
20-
"delay_before_restart": 0.5
19+
"number_of_attempts": 0,
20+
"delay_before_restart": 0
2121
}
2222
},
2323
"recovery_action": {
@@ -26,32 +26,43 @@
2626
}
2727
},
2828
"sandbox": {
29-
"uid": 0,
30-
"gid": 0,
29+
"uid": 1000,
30+
"gid": 1000,
3131
"supplementary_group_ids": [],
3232
"security_policy": "",
3333
"scheduling_policy": "SCHED_OTHER",
3434
"scheduling_priority": 0
3535
}
3636
},
3737
"component_properties": {
38+
"binary_name": "",
3839
"application_profile": {
39-
"application_type": "REPORTING",
40-
"is_self_terminating": false
40+
"application_type": "Reporting_And_Supervised",
41+
"is_self_terminating": false,
42+
"alive_supervision": {
43+
"reporting_cycle": 0.5,
44+
"failed_cycles_tolerance": 2,
45+
"min_indications": 1,
46+
"max_indications": 3
47+
}
4148
},
49+
"depends_on": [],
50+
"process_arguments": [],
4251
"ready_condition": {
4352
"process_state": "Running"
4453
}
4554
},
4655
"run_target": {
47-
"transition_timeout": 5,
56+
"description": "",
57+
"depends_on": [],
58+
"transition_timeout": 3,
4859
"recovery_action": {
4960
"switch_run_target": {
5061
"run_target": "fallback_run_target"
5162
}
5263
}
5364
},
54-
"alive_supervision" : {
65+
"alive_supervision": {
5566
"evaluation_cycle": 0.5
5667
},
5768
"watchdog": {}

0 commit comments

Comments
 (0)