Skip to content

Commit 8185747

Browse files
committed
Revert "Task: fix lock check"
This reverts commit be689a4.
1 parent be689a4 commit 8185747

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/oauth/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def sync_active_users_remote_repositories(self):
134134
# so we use a lock (12 hours) to avoid that.
135135
lock_id = "{0}-lock".format(self.name)
136136
with memcache_lock(lock_id, 60 * 60 * 12, self.app.oid) as acquired:
137-
if not acquired:
137+
if acquired:
138138
log.exception("Task has already been run recently, exiting.")
139139
return
140140

0 commit comments

Comments
 (0)