| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 99c4123 commit 0d9759e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -233,14 +233,14 @@ def query_ursadb(job_id: JobId, dataset_id: str, ursadb_query: str) -> None: | |||
| 233 | 233 | ) | |
| 234 | 234 | ||
| 235 | 235 | batches = __get_batch_sizes(file_count) | |
| 236 | + # add len(batches) new tasks, -1 to account for this task | ||
| 237 | + agent.add_tasks_in_progress(job, len(batches) - 1) | ||
| 238 | + | ||
| 236 | 239 | for batch in batches: | |
| 237 | 240 | agent.queue.enqueue(run_yara_batch, job_id, iterator, batch) | |
| 238 | 241 | ||
| 239 | 242 | agent.db.dataset_query_done(job_id) | |
| 240 | 243 | ||
| 241 | - # add len(batches) new tasks, -1 to account for this task | ||
| 242 | - agent.add_tasks_in_progress(job, len(batches) - 1) | ||
| 243 | - | ||
| 244 | 244 | ||
| 245 | 245 | def run_yara_batch(job_id: JobId, iterator: str, batch_size: int) -> None: | |
| 246 | 246 | """Actually scans files, and updates a database with the results""" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments