Commit Graph

20 Commits

Author SHA1 Message Date
Fabian Grünbichler
f6faf09cbf task index: fix return schema annotations
both task sources use PVE::Tools::upid_decode, which ensures all of the
':' delimited fields are set.

this only leaves 'status' and 'endtime' as optional, which are not set
for currently running tasks.

reorder them in the code for easier matching with their on-disk format.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Acked-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-01-23 18:42:59 +01:00
Fabian Grünbichler
8dacbee3e2 task index: allow filtering by task type
convenience filter if caller is only interested in certain actions

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2019-01-23 18:42:59 +01:00
Fabian Grünbichler
32388c4128 task index: allow selection of task source(s)
otherwise there is no way to find out about (all) active tasks over the
API if their UPIDs were not recorded when the initial API calls happened.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2019-01-23 18:42:59 +01:00
Dominik Csapak
20663182b4 whitespace fix
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-06-29 10:31:23 +02:00
Dominik Csapak
db354940fd task log: set default in the api call
we have the defaults documented here, so set them here too
otherwise if the default change in PVE::Tools, we probably forget to
update the api description

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-06-29 10:31:23 +02:00
Dominik Csapak
f0b87b4c28 node task list: set the defaults better
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-06-29 10:31:23 +02:00
Dominik Csapak
7419faa48c add more api schema information for node task list and log
this makes for a better documentation

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
2018-06-29 10:31:23 +02:00
Thomas Lamprecht
5e44c7e114 api/tasks: explicit import raise_param_exc
we inherited the import from PVE::RESTHandler but may want to get rid
of it there. So explicitly import it here.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
2018-06-18 11:07:46 +02:00
Dietmar Maurer
51506f9a2b PVE::API2::Tasks - remove dead code 2017-06-08 08:52:22 +02:00
Dietmar Maurer
4b70f596b3 PVE::API2::Tasks - use PVE::Tools::dump_logfile 2017-06-08 07:36:33 +02:00
Dietmar Maurer
b0f820ab9f PVE/API2/Tasks.pm: corretly return true after loading 2017-01-31 08:13:17 +01:00
Wolfgang Bumiller
f70fc9ace9 REST/RPCEnvironment's check_worker is a method now 2017-01-27 10:39:02 +01:00
Dietmar Maurer
5614bec08b add task history to VM panel 2013-02-11 09:24:15 +01:00
Dietmar Maurer
92fd515b47 fix bug #205 2012-10-23 09:52:45 +02:00
Dietmar Maurer
47a5865acb improve task viewer 2012-09-14 09:47:55 +02:00
Dietmar Maurer
00cc94d33e add permissions for task API 2012-02-06 09:33:57 +01:00
Dietmar Maurer
e4d554ba9b implement PasswordEdit dialog
And cleanup permission check code.
2012-01-20 12:56:48 +01:00
Dietmar Maurer
e09058af9a use new set_result_attrib 2011-12-21 07:11:04 +01:00
Dietmar Maurer
c5693297d3 use PVE::RPCEnvironment::check_worker() to impl. stop_task 2011-09-14 08:17:17 +02:00
Dietmar Maurer
beb651ee65 removed automake/autoconf, removed unused files 2011-08-23 16:11:04 +02:00