[cats-devel] Re: [cats-judge] my_remove bug

  • From: Denis Rotanov <denis@xxxxxxxxxxx>
  • To: cats-devel@xxxxxxxxxxxxx
  • Date: Wed, 17 Jun 2015 15:36:47 +1000

On 17.06.2015 15:01, Alexander Klenin wrote:

On Wed, Jun 17, 2015 at 11:05 AM, Denis Rotanov <denis@xxxxxxxxxxx> wrote:
Anyway, there is a "sleep 1" in the code, so should not it be enough if
the file persists for only a second?
It's `$retry and sleep 1;` so happens only after first retry (which is
second try). And sometimes even that is not enough.
Sure, but the gist you referenced contains 9 retries,
so there seems to be something deeper going on.

It's because for that gist I used `usleep 1000` or `usleep 10000` I don't remember exactly. With `sleep 1;` it's maximum of two retries.

Other related posts: