none
Support Peek Output in the REST (JSON) API

    Question

  • AFAICS there's no way via the api to get the result of Peek Output as you can in the GUI?

    It would be very useful to be able to get this from the REST API as without it the task output is blank until the task finishes making it difficult to monitor the progress of tasks

    Tuesday, 7 August 2018 10:50 AM

All replies

  • Currently it is only available through GUI, CLI (task view /PeekOutPut);

    It is not available in SDK or REST API, it is in the store API: 

    ISchedulerStore

    We didn't expose this through the API as we don't want user to call this API too often. As each time a call from client will re-direct to the node that is running the task.

    If you want to monitor the progress of tasks, we may do it different in future:

    - We can expose Task.Progress and Task.ProgressMessage

    - The ProgressMessage can be recent output we collected regularly


    Qiufang Shi

    Wednesday, 8 August 2018 4:48 AM