r-bridge icon indicating copy to clipboard operation
r-bridge copied to clipboard

Published GP Process is canceled before it's finished

Open BDvirus opened this issue 3 years ago • 10 comments

Steps to reproduce

Publish GP Process with simple R Script. Just print datetime every 10 seconds.

message("Start")
tool_exec <- function(in_param, out_param)
{

  result = tryCatch({
    
  for (i in 1:1000)
    {      
      date_time<-Sys.time()
      message(i, ": ", date_time)
      while((as.numeric(Sys.time()) - as.numeric(date_time))<10){
      } #dummy while loop
    }


  }, warning = function(w) {
    print(paste("w:  ",w))
  }, error = function(e) {
    print(paste("e:  ",e))
  }, finally = {
    message("finally completed") 
  })

}


Current behaviour (bug)

The script Cancelled before finish. esriJobMessageTypeAbort: Cancelled script timeoutTest... esriJobMessageTypeAbort: (timeoutTest) aborted by User.

image

Expected behaviour (correct)

Script should running more than 70 seconds (1 Minute and 10 Seconds)

Testing.

Tested with:

Arcgis server 10.6 CRAN R-3.6.1 R-bridge v1.0.1.239 Published with Arcgis Pro 2.6.0

Also Tested with

Arcgis server 10.6 Microsoft R Open 4.0.2 R-bridge v1.0.1.241 Published with Arcgis Pro 2.6.0

Additional info

As standalone tool inside Arc pro it's working.

BDvirus avatar Oct 14 '20 11:10 BDvirus

@BDvirus thanks for the detailed repro above. Moving this to our internal repo and will post back once this is fixed or we have a workaround

orhuna avatar Oct 14 '20 15:10 orhuna

Hello, same problem here. Spent days trying various configuration changes, adding memory, various versions of ArcGIS etc. The GP always fails after 70 seconds and my project is pretty stuck. No problem running from Pro. Hope for the fast solution.

MichaelGGeoda avatar Oct 15 '20 08:10 MichaelGGeoda

@MichaelGGeoda we are working with Portal team to investigate the timeout limit. Will get back to you with updates.

orhuna avatar Oct 16 '20 21:10 orhuna

Do you have some updates? A lot of problems with clients....

MichaelGGeoda avatar Oct 22 '20 06:10 MichaelGGeoda

Same problem happens for me. Looking forward for a solution.

roman-ssys avatar Oct 22 '20 10:10 roman-ssys

We are working on releasing a new version as we found a few problems that occur with 2.6.0+ also we are looking into the time limit for timeout. I will post back once the new version is out.

orhuna avatar Oct 22 '20 15:10 orhuna

Thanks @orhuna. Can you give some estimation so I could inform my client? Thanks!

MichaelGGeoda avatar Oct 22 '20 16:10 MichaelGGeoda

@BDvirus @MichaelGGeoda this does not seem to be an R-ArcGIS Bridge issue. With the version you shared, 10.6, similar behaviour with the equivalent Python script is observed. Our colleagues at the Portal team indicated that this was an issue that was fixed after 10.6. This issue might be resolved by updating ArcGIS Server.

orhuna avatar Oct 26 '20 04:10 orhuna

Thanks @orhuna,

I understand that it might be not an R-Bridge issue but you are the only one that can collaborate with portal team to try resolve this. Unfortunately same issue at Arcgis Server 10.7.1. 😔

BDvirus avatar Oct 26 '20 07:10 BDvirus

Hi, I have encountered with the same problem in my project. Using Arcgis server 10.7.1 and R-bridge v. 1.0.1.241.

RayaGal avatar Oct 26 '20 15:10 RayaGal