-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from 2jun0/GDET-42
GDET-42: 람다 빌드 및 배포 V2
- Loading branch information
Showing
7 changed files
with
146 additions
and
158 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
from typing import Any | ||
|
||
from game_updater.aws_lambda.lambda_api import LambdaAPI | ||
from game_updater.logger import logger | ||
from game_updater.scraper.service import scrap_games | ||
from game_updater.steam.steam_api import SteamAPI | ||
|
||
def lambda_handler(event: Any, context: Any): | ||
|
||
def scrap_games_job(lambda_api: LambdaAPI): | ||
logger.info("-- scrap game job start -- ") | ||
from game_updater.aws_lambda.lambda_api import LambdaAPI | ||
from game_updater.logger import logger | ||
from game_updater.scraper.service import scrap_games | ||
from game_updater.steam.steam_api import SteamAPI | ||
|
||
scrap_games(SteamAPI(), lambda_api) | ||
def scrap_games_job(lambda_api: LambdaAPI): | ||
logger.info("-- scrap game job start -- ") | ||
|
||
logger.info("-- scrap game job end -- ") | ||
scrap_games(SteamAPI(), lambda_api) | ||
|
||
logger.info("-- scrap game job end -- ") | ||
|
||
def lambda_handler(event: Any, context: Any): | ||
lambda_api = LambdaAPI() | ||
|
||
scrap_games_job(lambda_api) |
Oops, something went wrong.