We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9570fb commit be689a4Copy full SHA for be689a4
readthedocs/oauth/tasks.py
@@ -134,7 +134,7 @@ def sync_active_users_remote_repositories(self):
134
# so we use a lock (12 hours) to avoid that.
135
lock_id = "{0}-lock".format(self.name)
136
with memcache_lock(lock_id, 60 * 60 * 12, self.app.oid) as acquired:
137
- if acquired:
+ if not acquired:
138
log.exception("Task has already been run recently, exiting.")
139
return
140
0 commit comments