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 be689a4 commit 8185747Copy full SHA for 8185747
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 not acquired:
+ if acquired:
138
log.exception("Task has already been run recently, exiting.")
139
return
140
0 commit comments