This topic contains 3 replies, has 2 voices, and was last updated by Jerome 4 years, 9 months ago.

  • Author
    Posts
  • #1036

    seamanjeff

    I have a MapReduce script running in Test mode in the sandbox and there’s a logic bug in it (which I found after I started it).. it seems to be taking a very very long time to die. Is there really no way to kill it ?
    This is a cached copy. Click here to see the original post.

  • #1037

    robert.paulson

    Hi,

    Unfortunately there isn’t. You will have to wait for the script to finish.

  • #1038

    david.smith

    I find it best to build into the script a kill switch. This can be done many ways. One way is to use the N/cache module that is shared as public. Then you can have another script, such as a suitelet, that sets a kill value. In you Map/Reduce phases you would look for this kill switch before making any processes. If it’s there just do a return. Unfortunately it will still go through all the results but at least it will exit faster and not process anything. I don’t think there is a way to kill the entire script once it’s started.

  • #26130

    Jerome
    Member
    @jerome_morden

    Edit the script record and check the inactive then save. Just wait for a couple of minutes not more than 10mins and an script execution exceeded error occured.

You must be logged in to reply to this topic.