Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndris Zeila <andris.zeila@zabbix.com>2017-01-23 16:27:30 +0300
committerAndris Zeila <andris.zeila@zabbix.com>2017-01-23 16:27:30 +0300
commit4bc2b996de9ab4c6396f6e488b0a90c141aea068 (patch)
treefb01931034ed439bacc4496d3482384dbfcf640f /include/zbxtasks.h
parent56a419d4d8cb0da2f348ff012d65f206b0a8db9b (diff)
.......PS. [ZBXNEXT-936] leave tasks for 24h instead of removing them after closing
Diffstat (limited to 'include/zbxtasks.h')
-rw-r--r--include/zbxtasks.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/zbxtasks.h b/include/zbxtasks.h
index 68101e2c39d..461477a6f82 100644
--- a/include/zbxtasks.h
+++ b/include/zbxtasks.h
@@ -36,6 +36,11 @@
/* task manager task states */
#define ZBX_TM_STATUS_NEW 1
#define ZBX_TM_STATUS_INPROGRESS 2
+#define ZBX_TM_STATUS_DONE 3
+#define ZBX_TM_STATUS_EXPIRED 4
+
+/* the time period after which finished (done/expired) tasks are removed */
+#define ZBX_TM_CLEANUP_TASK_AGE SEC_PER_DAY
typedef struct
{
@@ -100,7 +105,6 @@ int zbx_tm_save_task(zbx_tm_task_t *task);
void zbx_tm_get_proxy_tasks(zbx_vector_ptr_t *tasks, zbx_uint64_t proxy_hostid);
void zbx_tm_update_task_status(zbx_vector_ptr_t *tasks, int status);
-void zbx_tm_delete_tasks(zbx_vector_ptr_t *tasks);
void zbx_tm_json_serialize_tasks(struct zbx_json *json, const zbx_vector_ptr_t *tasks);
void zbx_tm_json_deserialize_tasks(const struct zbx_json_parse *jp, zbx_vector_ptr_t *tasks);