[pve-devel] Problem with getting current running tasks from api

Eduard Ahmatgareev e.ahmatgareev at gmail.com
Mon Nov 30 14:13:16 CET 2015


thanks, I try got log from api, and have new problem, number of lines from
api got only 50.
In api:


{
        "n" : 9,
         "t" : "INFO: started backup task
'2f24d203-0be4-4684-82b9-e76e50c7db51'"
      },
     skip
      {
         "n" : 47,
         "t" : "INFO: status: 37% (6988955648/18874368000), sparse 15%
(2853744640), duration 712, 9/9 MB/s"
      },
      {
         "n" : 48,
         "t" : "INFO: status: 38% (7176519680/18874368000), sparse 15%
(2859991040), duration 731, 9/9 MB/s"
      },
      {
         "n" : 49,
         "t" : "INFO: status: 39% (7363756032/18874368000), sparse 15%
(2864693248), duration 750, 9/9 MB/s"
      },
      {
         "n" : 50,
         "t" : "INFO: status: 40% (7551451136/18874368000), sparse 15%
(2873110528), duration 769, 9/9 MB/s"
      }
   ],
   "total" : 79


In gui at this moment:
INFO: started backup task '2f24d203-0be4-4684-82b9-e76e50c7db51'
skip
INFO: status: 68% (12840861696/18874368000), sparse 23% (4449501184),
duration 1308, 9/1 MB/s
INFO: status: 69% (13028032512/18874368000), sparse 24% (4636622848),
duration 1327, 9/0 MB/s
INFO: status: 70% (13215137792/18874368000), sparse 25% (4774141952),
duration 1346, 9/2 MB/s
INFO: status: 71% (13402308608/18874368000), sparse 26% (4939022336),
duration 1365, 9/1 MB/s



api return only 50 lines, how can I get all lines ruuning task via api?



2015-11-27 15:56 GMT+02:00 Thomas Lamprecht <t.lamprecht at proxmox.com>:

> Use the following API URL to get all task from all nodes with active tasks
> included:
>
> /cluster/tasks
>
>
> Tip when working with the api: You can with all get results from the api
> in the browser nicely formatted with bootstrap, for example if your Proxmox
> VE IP is 10.10.10.3 use:
>
> https://10.10.10.3:8006/api2/html/cluster/tasks
>>
>
> To see a quick view from what you get. pvesh is also a handy tool :)
>
> regards,
> Thomas
>
>
> On 11/27/2015 01:27 PM, Eduard Ahmatgareev wrote:
>
>> Could you please help me, I can't find how get current running tasks from
>> api?
>>
>> I need get all info about current running task and info about connected
>> this task to vmid
>>
>> I try run pvesh get /nodes/{node}/tasks , but this query return only
>> completed task.
>>
>>
>> This need to me for manual create backups from api and check dublicates
>> task in query before  run.
>>
>>
>
> _______________________________________________
> pve-devel mailing list
> pve-devel at pve.proxmox.com
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pve.proxmox.com/pipermail/pve-devel/attachments/20151130/0a560c6a/attachment.html>


More information about the pve-devel mailing list