mirror of
https://github.com/YunoHost/yunorunner.git
synced 2024-09-03 20:05:52 +02:00
[mod] global variables should be at the top
This commit is contained in:
parent
5d0d4a46bb
commit
9ed87d5cfd
1 changed files with 2 additions and 2 deletions
4
run.py
4
run.py
|
@ -30,6 +30,8 @@ COMMUNITY_APPS_LIST = "https://app.yunohost.org/community.json"
|
|||
|
||||
APPS_LIST = [OFFICAL_APPS_LIST, COMMUNITY_APPS_LIST]
|
||||
|
||||
subscriptions = defaultdict(list)
|
||||
|
||||
|
||||
def reset_pending_jobs():
|
||||
Job.update(state="scheduled").where(Job.state == "running").execute()
|
||||
|
@ -276,8 +278,6 @@ async def index(request):
|
|||
|
||||
|
||||
if __name__ == "__main__":
|
||||
subscriptions = defaultdict(list)
|
||||
|
||||
reset_pending_jobs()
|
||||
reset_busy_workers()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue