| Conditions | 4 |
| Total Lines | 14 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | '''David Foderick, Skylake Software Inc. |
||
| 17 | def domonitor(): |
||
| 18 | '''queue workers to run the individual miner monitoring''' |
||
| 19 | entries = QueueEntries() |
||
| 20 | try: |
||
| 21 | miners = MONITOR.app.allminers() |
||
| 22 | print("{0} miners configured".format(len(miners))) |
||
| 23 | |||
| 24 | for miner in miners: |
||
| 25 | if not miner.is_manually_disabled(): |
||
| 26 | entries.add(QueueName.Q_MONITORMINER, MONITOR.app.messageencode(miner)) |
||
| 27 | print("waiting for next monitor event") |
||
| 28 | except Exception as theex: |
||
| 29 | MONITOR.app.logexception(theex) |
||
| 30 | return entries |
||
| 31 | |||
| 42 |