Redwood Documentation

Product Documentation

 

›Locks and Events

RunMyJobsAutomation Concepts

Automation Concepts

  • Central Scheduling Concepts
  • Automating Processes Across the System Landscape
  • Processes, Chains, and History
  • Queues and Process Servers
  • Workload
  • SAP Systems
  • Events and Event Definitions
  • Scheduling
  • Applications
  • Editing Objects in XML

Locks and Events

  • Prevent Simultaneous Execution of Processes
  • Creating Locks
  • Creating Event-Driven Schedules with Events

Documents

  • Documenting Code, Procedures, and Messages with Documents

Applications

  • Organizing Processes in Applications
  • Creating Applications

End User Overviews

  • End User Interfaces
  • Process Monitors Overview
  • Process Monitors Overview Columns
  • User Message Monitor
  • Designing User Message Forms
  • User Message Monitor Columns
  • Interacting with User Messages
  • Feeds

Managing Output Formats

  • Managing Output Formats

Regular Activities

  • Regular Activities for Redwood Server

Promoting Objects

  • Migrating Objects with the Promotion Module
  • Exporting Redwood Server Objects
  • Export Rule Sets
  • Creating Export Rule Sets
  • Importing Objects
  • Importing Redwood Server Objects with Imports
  • Using Import Rule Sets to Customize Imports
  • Importing Objects with Import Rule Sets
  • Creating Remote Systems
  • Promotion Reaction Processes
  • Integrating Redwood Server Promotion into SAP CTS+
  • Pusher Process Definitions for SAP CTS+ Integration

Backup and Recovery

  • Backup and Recovery of Redwood Server
  • Database Backup
  • Restore Data from Backup

Reference

  • Managing Output Formats
← Editing Objects in XMLCreating Locks →

Prevent Simultaneous Execution of Processes

Multiple processes can be scheduled to run across the scheduling landscape at any given time. Some of these processes or chains have dependencies that must be met and that forbid simultaneous execution. One simple way is to create a chain that executes the chain processes in a specific order, often however, one single process or chain can only run once or when multiple other processes or chains have completed.

To prevent processes or chains from running at the same time, locks can be used. A lock is an object that can be attached to a process or chain and that prevents other processes or chains with that same lock from starting as long as a process with that lock is running. Locks, process, and chain have lock counts, defaulting to 1, which allow you to tailor which type of process can run simultaneously. Each process or chain holding a lock also holds a certain number of lock counts; when a process or chain require more lock counts than are currently available on the lock, it will not start until the required amount is freed. For example, three processes are scheduled to run now, all hold a lock which has 10 lock counts. The first two processes require 5 lock counts each, the third requires 6. If the third process gets hold of the lock first, the other two will not run until the third has reached a final state.

An alternative solution, which is recommended for locking a great number of processes, would be to use a queue with a queue limit of 1, so only one process can run in the queue at any given time. When you have many processes waiting on a lock, you end up in a situation of lock contention; to avoid this, use queues with limits instead.

See Also

  • Creating Locks
  • Editing Queues
← Editing Objects in XMLCreating Locks →
  • See Also
Docs
Getting StartedInstallationFinance InstallationConcepts
TroubleshootingArchiving
Learn and Connect
Support Portal
BlogEventsResources
ISO/ IEC 27001 Information Security Management
Automate to be human

2023 All Rights Reserved |

Terms of Service | Policies | Cookies | Glossary | Third-party Software | Contact | Copyright | Impressum |