(self)
| 105 | |
| 106 | @property |
| 107 | def worker_class_str(self): |
| 108 | uri = self.settings['worker_class'].get() |
| 109 | |
| 110 | if isinstance(uri, str): |
| 111 | # are we using a threaded worker? |
| 112 | is_sync = uri.endswith('SyncWorker') or uri == 'sync' |
| 113 | if is_sync and self.threads > 1: |
| 114 | return "gthread" |
| 115 | return uri |
| 116 | return uri.__name__ |
| 117 | |
| 118 | @property |
| 119 | def worker_class(self): |