23 lines
452 B
Python
23 lines
452 B
Python
from app.core._utils.send_status import send_status
|
|
from app.core.logger import make_log
|
|
import asyncio
|
|
|
|
|
|
async def main():
|
|
make_log("Indexator", "Service started", level="info")
|
|
seqno = 0
|
|
while True:
|
|
|
|
await asyncio.sleep(5)
|
|
await send_status("indexator", f"working (seqno={seqno})")
|
|
seqno += 1
|
|
|
|
if __name__ == '__main__':
|
|
loop = asyncio.get_event_loop()
|
|
loop.run_until_complete(main())
|
|
loop.close()
|
|
|
|
|
|
|
|
|