Skip to content

Commit

Permalink
feat: modify task size '4' -> '5'
Browse files Browse the repository at this point in the history
Signed-off-by: ImMin5 <[email protected]>
  • Loading branch information
ImMin5 committed Aug 6, 2024
1 parent 34a178a commit 79e4e02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def convert_nested_dictionary(self, cloud_svc_object):

def _retry_request(self, response, url, headers, json, retry_count, method="post"):
try:
print(f"{datetime.utcnow()}[INFO] retry_request {response.headers}")
_LOGGER.error(f"{datetime.utcnow()}[INFO] retry_request {response.headers}")
if retry_count == 0:
raise ERROR_UNKNOWN(
message=f"[ERROR] retry_request failed {response.json()}"
Expand Down Expand Up @@ -353,7 +353,7 @@ def _download_cost_data(blob: dict) -> str:

@staticmethod
def _get_sleep_time(response_headers):
sleep_time = 0
sleep_time = 30
for key, value in response_headers.items():
if "retry" in key.lower():
if isinstance(value, str) is False:
Expand Down
2 changes: 1 addition & 1 deletion src/cloudforet/cost_analysis/manager/job_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

_LOGGER = logging.getLogger("spaceone")

_TASK_LIST_SIZE = 4
_TASK_LIST_SIZE = 5


class JobManager(BaseManager):
Expand Down

0 comments on commit 79e4e02

Please sign in to comment.