cancel
Showing results for 
Search instead for 
Did you mean: 
Post a Question
phlrnnr
Copper

Are there default timeouts for asynchronous actions?

Jump to solution

Are there any default timeouts for certain asynchronous actions such as publish, install-policy, etc?  I'm writing code that will publish changes, and then monitor the task-id associated with that publish action.  Knowing how long Checkpoint will wait before a certain task will timeout and (I assume) mark the task status as 'failed' will help me be able to write smarter code.

The main ones I'm interested in are:


publish

verify-policy

install-policy

Labels (1)
1 Solution

Accepted Solutions
Employee++
Employee++

Re: Are there default timeouts for asynchronous actions?

Jump to solution

Phillip,

You do not have to worry about async operations timeouts. As long as you call the show-task command, the connection will remain opened until a final result will arrive, and it will.

BTW, regarding the publish operation - I suggest calling it every ~100 CRUD operations to avoid heavy loads.

If you use the mgmt_cli command line tool, it will wait for you.

Robert.

5 Replies
Employee++
Employee++

Re: Are there default timeouts for asynchronous actions?

Jump to solution

Phillip,

You do not have to worry about async operations timeouts. As long as you call the show-task command, the connection will remain opened until a final result will arrive, and it will.

BTW, regarding the publish operation - I suggest calling it every ~100 CRUD operations to avoid heavy loads.

If you use the mgmt_cli command line tool, it will wait for you.

Robert.

Re: Are there default timeouts for asynchronous actions?

Jump to solution

Robert,

When I try to get the publishing progress, it always return 60% before it is done.

Is this normal?

Indiana

Employee++
Employee++

Re: Are there default timeouts for asynchronous actions?

Jump to solution

Hi Indiana,

This is normal, do not worry about it.

Robert.

Ralph_Pho
Ivory

Re: Are there default timeouts for asynchronous actions?

Jump to solution

Phillip,

Default connection timeout for web_api is 5 minutes, mgmt_cli is 3 minutes.

Employee++
Employee++

Re: Are there default timeouts for asynchronous actions?

Jump to solution

this is correct, but when calling the show-task command, the connection is always kept-alive.

robert.