Re: Seconds and milliseconds confusion in python thin client

2021-06-16 Thread Ivan Daschinsky
I have a compromise variant. 1. Large timeouts are set usually only for expire_policy. I suggest to support datetime.timedelta here and int as milliseconds 2. All others timeouts should accept only ints as milliseconds. 3. Only timeout in Connection as sockettimeout should remain float in seconds,

Re: Seconds and milliseconds confusion in python thin client

2021-06-16 Thread Ivan Daschinsky
I've created ticket for it https://issues.apache.org/jira/browse/IGNITE-14911 ср, 16 июн. 2021 г. в 08:37, Ivan Daschinsky : > > Ops, i don't even know about it. I believe that this is so rarely used, i > don't even noticed it. I am talking about transactions and expiry policy. I > suppose that

Re: Seconds and milliseconds confusion in python thin client

2021-06-15 Thread Ivan Daschinsky
Ops, i don't even know about it. I believe that this is so rarely used, i don't even noticed it. I am talking about transactions and expiry policy. I suppose that in the case of sql we can simply change it. ср, 16 июн. 2021 г., 00:46 Igor Sapego : > Why is it not released? > > I can see client.sq

Re: Seconds and milliseconds confusion in python thin client

2021-06-15 Thread Igor Sapego
Why is it not released? I can see client.sql(timeout) in 0.4.0 for example, which is int number of ms. Best Regards, Igor On Tue, Jun 15, 2021 at 11:52 PM Ivan Daschinsky wrote: > BTW, common approach is to treat both ints and floats as seconds. Floats > are used to set timeout with milliseco

Re: Seconds and milliseconds confusion in python thin client

2021-06-15 Thread Ivan Daschinsky
BTW, common approach is to treat both ints and floats as seconds. Floats are used to set timeout with millisecods precision. I.e. asyncio.sleep(1.0) and asyncio.sleep(1) pauses coroutine for 1 sec. Lets create ticket for it, stop voting for 0.5.0.rc0 and schedule next vote. вт, 15 июн. 2021 г., 23

Re: Seconds and milliseconds confusion in python thin client

2021-06-15 Thread Ivan Daschinsky
Igor, I suppose that you are probably right. But there is no need to notice or deprecate something. This functionality is not released yet вт, 15 июн. 2021 г., 23:41 Igor Sapego : > Hi Igniters, > > I've noticed a weird behaviour of python thin client. In those places where > we have > timeouts o