Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

TypeError: '<' not supported between instances of 'AsyncUpdateTaskAction' and 'AsyncUpdateTaskAction' #153

Description

@punkymaniac

With multiple tasks scheduled, I regularly catch this error and the daemon stop to process scheduled scan.

Exception in thread Thread-1:                               
Traceback (most recent call last):           
  File "/usr/lib64/python3.6/threading.py", line 916, in _bootstrap_inner                           
    self.run()                                        
  File "/usr/lib64/python3.6/threading.py", line 864, in run                                                 
    self._target(*self._args, **self._kwargs)
  File "/usr/local/lib/python3.6/site-packages/openscap_daemon/dbus_daemon.py", line 45, in <lambda>  
    target=lambda: self.system.schedule_tasks_worker()
  File "/usr/local/lib/python3.6/site-packages/openscap_daemon/system.py", line 575, in schedule_tasks_worker
    self.schedule_tasks(reference_datetime)
  File "/usr/local/lib/python3.6/site-packages/openscap_daemon/system.py", line 545, in schedule_tasks
    TASK_ACTION_PRIORITY              
  File "/usr/local/lib/python3.6/site-packages/openscap_daemon/async_tools.py", line 162, in enqueue
    self.queue.put((priority, action))
  File "/usr/lib64/python3.6/queue.py", line 143, in put                                             
    self._put(item)                           
  File "/usr/lib64/python3.6/queue.py", line 227, in _put              
    heappush(self.queue, item)                
TypeError: '<' not supported between instances of 'AsyncUpdateTaskAction' and 'AsyncUpdateTaskAction'

I need to remove all task (or I can keep only one) and restart the daemon to return in a working state.
I continue to investigate to find a state where I can reproduce the error each time.
Someone have already get the same error ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions