Fix the scriptrunner to use consumer-producer model for scheduling scripts
Bug #1000386 reported by
Jono Bacon
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Accomplishments Daemon |
Fix Released
|
Medium
|
Rafał Cieślak |
Bug Description
As per the Twisted team's recommendations, we should use threads to manage the script runner.
summary: |
- Fix the scriptrunner to use threads + Fix the scriptrunner to use consumer-producer model for scheduling + scripts |
Changed in ubuntu-accomplishments-daemon: | |
milestone: | 0.2 → 0.3 |
Changed in ubuntu-accomplishments-daemon: | |
assignee: | nobody → Rafal Cieślak (rafalcieslak256) |
Changed in ubuntu-accomplishments-daemon: | |
status: | Confirmed → Fix Committed |
Changed in ubuntu-accomplishments-daemon: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Begin more exact: we want to use is a consumer-producer model. API calls like "run_script( accomID) " should add the acomID the the queue, while some separate thread would sleep until there are some new data in the queue, and process them by running related scripts.