|
7 | 7 | from django.urls import reverse |
8 | 8 |
|
9 | 9 | import dojo.jira_link.helper as jira_helper |
10 | | -from dojo.decorators import we_want_async |
11 | 10 | from dojo.finding import helper as finding_helper |
12 | 11 | from dojo.importers.base_importer import BaseImporter, Parser |
13 | 12 | from dojo.importers.options import ImporterOptions |
@@ -250,27 +249,14 @@ def process_findings( |
250 | 249 | batch_finding_ids.clear() |
251 | 250 | logger.debug("process_findings: dispatching batch with push_to_jira=%s (batch_size=%d, is_final=%s)", |
252 | 251 | push_to_jira, len(finding_ids_batch), is_final_finding) |
253 | | - if we_want_async(async_user=self.user): |
254 | | - signature = finding_helper.post_process_findings_batch_signature( |
255 | | - finding_ids_batch, |
256 | | - dedupe_option=True, |
257 | | - rules_option=True, |
258 | | - product_grading_option=True, |
259 | | - issue_updater_option=True, |
260 | | - push_to_jira=push_to_jira, |
261 | | - ) |
262 | | - logger.debug("process_findings: signature created with push_to_jira=%s, signature.kwargs=%s", |
263 | | - push_to_jira, signature.kwargs) |
264 | | - signature() |
265 | | - else: |
266 | | - finding_helper.post_process_findings_batch( |
267 | | - finding_ids_batch, |
268 | | - dedupe_option=True, |
269 | | - rules_option=True, |
270 | | - product_grading_option=True, |
271 | | - issue_updater_option=True, |
272 | | - push_to_jira=push_to_jira, |
273 | | - ) |
| 252 | + finding_helper.post_process_findings_batch( |
| 253 | + finding_ids_batch, |
| 254 | + dedupe_option=True, |
| 255 | + rules_option=True, |
| 256 | + product_grading_option=True, |
| 257 | + issue_updater_option=True, |
| 258 | + push_to_jira=push_to_jira, |
| 259 | + ) |
274 | 260 |
|
275 | 261 | # No chord: tasks are dispatched immediately above per batch |
276 | 262 |
|
|
0 commit comments