Skip to content

Commit

Permalink
Update nodes.yml and main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
appujet committed Apr 9, 2024
1 parent 60f9023 commit 2890975
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/nodes.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Update Nodes

on:
schedule:
- cron: '*/1 * * * *' # Runs every minute
push:
branches:
- main
schedule:
- cron: '*/1 * * * *' # Runs every minute


jobs:
update:
Expand Down
6 changes: 5 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,10 @@ async def main():

await db.disconnect()

asyncio.run(main())

async def loop_main():
while True:
asyncio.run(main())
await asyncio.sleep(60)

asyncio.run(loop_main())

0 comments on commit 2890975

Please sign in to comment.