question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR:aiomisc.periodic: Periodic task error:

See original GitHub issue

Я тут хочу запустить библиотеку aioimaplib через aiomisc.service.periodic но, при запуске получаю такой ответ:RuntimeError: Event loop is closed . Сам код нормально работает при запуске через asyncio loop. В чем могут быть проблемы? Log:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
mosquitocommented, May 31, 2020

Возможно причина в том, что entrypoint создавая event loop закрывает уже созданный для этого потока так как для одного потока два экземпляра event loop ломают много прикладного кода. Если я прав, и ты создал PeriodicCallback с другим экземпляром event loop, то явная передача экземпляра event loop в entrypoint обойдет эту проблему with entrypoint(..., loop=asyncio.get_event_loop()): ... но так далать не очень хорошо. И да это только пои догадки и @dizballanze прав, нужен пример кода.

1reaction
dizballanzecommented, May 31, 2020

Привет. По одному трейсбеку мало что понятно, но возможно, что ты не запускаешь сервис в entrypoint. Можешь показать минимальный пример кода с такой проблемой?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Celery 4.1 periodic tasks error - Stack Overflow
Within my celery.py file I define app like this: app = Celery( 'your_celery_app_name', include=[ 'your_celery_app_name.module.task1', ...
Read more >
Celery Beat Periodic Task Duplicated Incessantly · Issue #4041
Just some random trial and error, I am using celery 4.1, django 1.11.7 django-celery-beat 1.1.0, postgresql as db. After change USE_TZ=True, the ...
Read more >
Error 0x80041323 when you run Scheduled tasks
This article provides a solution to fix the error 0x80041323 that occurs when you run high number of Scheduled tasks.
Read more >
PLCGurus.NET - Understanding Periodic Tasks - YouTube
In this video I show you how periodic tasks work in ControlLogix/Studio 5000 environment by performing destructive tests on a set of outputs ......
Read more >
Consumer Events — huey 1.11.0 documentation
retry_delay : how long to sleep before retrying the task in event of failure. execute_time : A unix timestamp indicating when the task...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found