Skip to content
Snippets Groups Projects

Fix output sizes

Merged Mattia Mancini requested to merge fix_output_sizes into main
3 files
+ 87
1
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 10
1
"""
This module is responsible for the communication to and from ATDB
"""
from typing import List, Generator
from argparse import Namespace
from typing import List, Generator
import requests
@@ -122,6 +123,14 @@ class APIConnector:
for item in drf_reply.results:
yield item
def update_task_processed_size(self, task_id, processed_size):
"""
Change the whole task content
"""
return self._request_path(
"PUT", f"tasks/{task_id}", content={"size_processed": processed_size}
)
def change_task_status(self, task_id, status) -> None:
"""
Change the status of a task
Loading