Project

General

Profile

Bug #5062

Real time module sometimes gracefully exits

Added by Pavel Kácha 11 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Development - Core
Target version:
Start date:
05/13/2019
Due date:
% Done:

100%

Estimated time:
To be discussed:
No

Description

Enricher sometimes exits gracerully without error. Related log message is:

2019-03-26 08:05:45,826 mentat-inspector.py [53163] INFO: Daemon processing termination forced by empty queue, will not wait for time scheduled events.

Maybe flawed one-shot handling?

Associated revisions

Revision 0d305df5 (diff)
Added by Jan Mach 7 months ago

Upgraded third party Python libraries to latest versions.

(Redmine issue: #3387,#5062)

History

#1 Updated by Pavel Kácha 11 months ago

  • Target version changed from 2.5 to 2.6

#2 Updated by Pavel Kácha 9 months ago

  • Subject changed from Enricher sometimes gracefully exits to Inspector sometimes gracefully exits

Happened again in mentat-inspector-b.py on mentat-hub. Related log excerpt:

2019-07-22 18:13:23,839 mentat-inspector-b.py [45553] INFO: Waiting for '2' seconds until next scheduled event
2019-07-22 18:13:25,840 mentat-inspector-b.py [45553] INFO: Received wakeup signal (14)
2019-07-22 18:13:25,962 mentat-inspector-b.py [45553] INFO: Component 'filer': Scheduling next queue check after '3' seconds
2019-07-22 18:13:25,962 mentat-inspector-b.py [45553] INFO: Waiting for '1' seconds until next scheduled event
2019-07-22 18:13:26,962 mentat-inspector-b.py [45553] INFO: Received wakeup signal (14)
2019-07-22 18:13:26,962 mentat-inspector-b.py [45553] INFO: Waiting for '2' seconds until next scheduled event
2019-07-22 18:13:28,962 mentat-inspector-b.py [45553] INFO: Received wakeup signal (14)
2019-07-22 18:13:28,963 mentat-inspector-b.py [45553] INFO: Component 'filer': Scheduling next queue check after '3' seconds
2019-07-22 18:13:28,963 mentat-inspector-b.py [45553] INFO: Waiting for '1' seconds until next scheduled event
2019-07-22 18:13:29,963 mentat-inspector-b.py [45553] INFO: Received wakeup signal (14)
2019-07-22 18:13:29,963 mentat-inspector-b.py [45553] INFO: Daemon processing termination forced by empty queue, will not wait for time scheduled events.
2019-07-22 18:13:29,964 mentat-inspector-b.py [45553] INFO: Application runtime: '11 days, 9:20:32.580250' (effectivity 100.00 %)

#3 Updated by Pavel Kácha 9 months ago

  • Subject changed from Inspector sometimes gracefully exits to Real time module sometimes gracefully exits

Now observed on enricher (luckily we have more instances):

2019-07-25 02:50:24,016 mentat-enricher.py [45532] INFO: Daemon processing termination forced by empty queue, will not wait for time schedule
d events.

#4 Updated by Jan Žerdík 7 months ago

  • Status changed from New to Resolved
  • Assignee changed from Jan Mach to Jan Žerdík
  • Target version changed from 2.6 to 2.5
  • % Done changed from 0 to 100

When two scheduled events is planed close to each other and one should have started during progress of the other, the method wait on EventQueueManager returns negative number (return self.events_at[0][0] - time.time()). It was tested against zero, better is testing explicitly size of the queue (method count).

[[https://github.com/honzamach/pyzenkit/pull/1]]

#5 Updated by Pavel Kácha 7 months ago

  • Status changed from Resolved to Closed

Cool, thanks!

#6 Updated by Jan Mach 7 months ago

Deployed to mentat-alt.

Also available in: Atom PDF