use a lock file to check if only one feed2toot process runs at a given time
This commit is contained in:
parent
04d5441be4
commit
8dbf986b34
5 changed files with 127 additions and 0 deletions
|
@ -52,8 +52,14 @@ class CliParse:
|
|||
help='tweet all RSS items, regardless of cache')
|
||||
parser.add_argument('-l', '--limit', dest='limit', default=10, type=int,
|
||||
help='tweet only LIMIT items (default: %(default)s)')
|
||||
parser.add_argument('-t', '--lock-timeout', dest='locktimeout', default=3600, type=int,
|
||||
help='lock timeout in seconds after which feed2toot can removes the lock itself')
|
||||
parser.add_argument('--cachefile', dest='cachefile',
|
||||
help='location of the cache file (default: %(default)s)')
|
||||
parser.add_argument('--lockfile', dest='lockfile',
|
||||
default=os.path.join(os.getenv('XDG_CONFIG_HOME', '~/.config'),
|
||||
'feed2toot.lock'),
|
||||
help='location of the lock file (default: %(default)s)')
|
||||
parser.add_argument('-n', '--dry-run', dest='dryrun',
|
||||
action='store_true', default=False,
|
||||
help='Do not actually post tweets')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue