Skip to content

Commit

Permalink
chore: refine rm limit
Browse files Browse the repository at this point in the history
  • Loading branch information
crimson-gao committed Jan 7, 2025
1 parent 5928e7c commit 6282b77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
9 changes: 1 addition & 8 deletions aliyun/log/logclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -5825,16 +5825,9 @@ def create_rebuild_index(self, project, logstore, job_name, display_name, from_t
:raise: LogException
"""
if type(from_time) != int:
raise LogException("InvalidParameter", "from_time must be int")
if type(to_time) != int:
raise LogException("InvalidParameter", "to_time must be int")
if from_time >= to_time:
raise LogException("InvalidParameter", "from_time must be less than to_time")

params = {}
headers = {"x-log-bodyrawsize": "0",
"Content-Type": "application/json"}
headers = {"Content-Type": "application/json"}
body = {
"configuration":
{
Expand Down
2 changes: 1 addition & 1 deletion tests/rebuild_index_examples/rebuild_index_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ def main():

# wait a while util job complete
while True:
print('wait rebuild index done...')
time.sleep(10)

resp = client.get_rebuild_index(project, job_name)
resp.log_print()

Expand Down

0 comments on commit 6282b77

Please sign in to comment.