Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Stopping a script if 2nd user is running a script

Featured Replies

I have a file with about 40,000 records. Several times a day a script is run by a user that goes thru every record and updates each record (don't ask why, but it has to right now). This script takes about 6 minutes to run.

Other users runs scripts that find sets of these records. If the previously mentioned script that is updating the records is currently running, other users that run the find scripts get incorrect results and they take 10x longer to run.

Can I add to the find scripts, steps that will return a message (and halt the find script) if the updating script is being run? The updating script is always run by a different user, obviously. Thansk in advance for any help.

Hi vanderark,

You could have an extra database with one record and one field that flags if the script is running,

The find scripts would have to check this flag before executing their actual find steps.

Regards,

Ernst.

  • Author

That sounds brillantly simple and I am embarrassed not to have thought of it! Since I don't have the DB on multiuser (I am at home working on it), I will test it on Monday. Thank you.

  • Author

I also set the new DB up to have several fields, each for a different DB/Script.

This way, I can have the single new DB and have all other DB's refer to it and to a specific field in it, before running resource-heavy scripts.

Great idea!

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.