Disable job requests while running job pattern

From Wikipedia, the free encyclopedia

In Software engineering, the disable job requests while running job pattern is a software design pattern of disabling job requests when necessary.

When a job is requested it is possible for the same job to be requested a second time before the first job completes. Parallel processing of the same job can cause execution resource problems. Either disable the second job or queue it for later execution.

An example of this pattern is a "lock"-file. Often used on Unix-Systems a "lock"-file prevents the same application from running several times at the same time.