Skip to content

Commit

Permalink
Merge pull request #173 from gitautoai/wes
Browse files Browse the repository at this point in the history
Update AWS Lambda function timedout duration from 210 to 600 in console and improve a tiny things
  • Loading branch information
hiroshinishio authored Jul 4, 2024
2 parents c99794f + 2c4b595 commit f974ca5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cloudformation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Resources:
Properties:
Name: SchedulerEventRule
Description: "Schedule Lambda function to run every weekday at 0 AM UTC"
ScheduleExpression: cron(12 8 ? * MON-FRI *) # min hour day month day-of-week year
ScheduleExpression: cron(34 8 ? * MON-FRI *) # min hour day month day-of-week year
State: ENABLED
Targets:
- Arn: !Ref LambdaFunctionArn
Expand Down
2 changes: 1 addition & 1 deletion services/github/github_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,6 @@ def get_installed_owners_and_repos(token: str) -> list[dict[str, str]]:
timeout=TIMEOUT_IN_SECONDS,
)
response.raise_for_status()
print("response.json() in get_installed_owners_and_repos: ", response.json())
repos = response.json().get("repositories", [])

# If there are no more repositories, break the loop. Otherwise, add them to the list
Expand All @@ -364,6 +363,7 @@ def get_installed_owners_and_repos(token: str) -> list[dict[str, str]]:
owners_repos.extend(i)

# https://docs.github.com/en/rest/using-the-rest-api/using-pagination-in-the-rest-api?apiVersion=2022-11-28
print("response.links:", json.dumps(response.links, indent=2))
if "next" not in response.links:
break
page += 1
Expand Down

0 comments on commit f974ca5

Please sign in to comment.