sp_fr: crawl sftp hourly (#32851)
This commit is contained in:
parent
f5f518b04e
commit
43813ee6bb
|
@ -111,6 +111,9 @@ class Resource(BaseResource):
|
|||
self.check_status()
|
||||
return {'err': 0}
|
||||
|
||||
def hourly(self):
|
||||
self.run_loop()
|
||||
|
||||
def run_loop(self, count=1):
|
||||
with transaction.atomic():
|
||||
# lock resource
|
||||
|
|
Loading…
Reference in New Issue