Skip to main content

Ensure single instance of a command without leaving stale lock files.

Project description

Wrap a command with single to ensure there is at most single instance of the command at a time.

This comes in handy when periodically invoking potentially long-running commands by cron. single avoids the problem of stale lock suffered by lock file approach. Even if the command crashes the lock is cleared.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

single-0.2.0.tar.gz (3.9 kB view details)

Uploaded Source

File details

Details for the file single-0.2.0.tar.gz.

File metadata

  • Download URL: single-0.2.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.5.3 setuptools/3.3 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.6

File hashes

Hashes for single-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5072fe937458bbf604bee4f67f53f809d76a0ab023b2136ce2d4846cc22d7d36
MD5 cedaac906d63a36059fe99e973b3a43b
BLAKE2b-256 6956889abd843b3acb42b2258e66ec52624e7f7db87e80a5e1a480ba71e22a1e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page