Skip to content

Instantly share code, notes, and snippets.

@zzstoatzz
Last active March 28, 2022 20:54
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save zzstoatzz/1cee75b65494606b7debda90ce352483 to your computer and use it in GitHub Desktop.
❯ python flow.py
10:56:13.218 | INFO | prefect.engine - Created flow run 'marvellous-serval' for flow "Store chess.com users' games"
10:56:13.218 | INFO | Flow run 'marvellous-serval' - Using task runner 'ConcurrentTaskRunner'
Checking for games on chess.com from: n80n8
10:56:13.522 | INFO | Flow run 'marvellous-serval' - Created task run 'get_games-d2192cf5-0' for task 'get_games'
10:56:13.558 | INFO | Flow run 'marvellous-serval' - Created task run 'get_games-d2192cf5-1' for task 'get_games'
GET https://api.chess.com/pub/player/n80n8/games/2021/11
/Users/nate/opt/miniconda3/envs/chess/lib/python3.7/site-packages/prefect/client.py:1196: UserWarning: No default storage has been set on the server. Using temporary local storage for results.
"No default storage has been set on the server. "
10:56:14.152 | INFO | Flow run 'marvellous-serval' - Created task run 'get_games-d2192cf5-2' for task 'get_games'
GET https://api.chess.com/pub/player/n80n8/games/2021/12
10:56:18.118 | INFO | Flow run 'marvellous-serval' - Created task run 'get_games-d2192cf5-3' for task 'get_games'
GET https://api.chess.com/pub/player/n80n8/games/2022/01
10:56:22.990 | INFO | Task run 'get_games-d2192cf5-1' - Finished in state Completed(None)
GET https://api.chess.com/pub/player/n80n8/games/2022/02
10:56:30.350 | INFO | Task run 'get_games-d2192cf5-2' - Finished in state Completed(None)
10:56:30.364 | INFO | Task run 'get_games-d2192cf5-3' - Finished in state Completed(None)
10:56:30.407 | INFO | Task run 'get_games-d2192cf5-0' - Finished in state Completed(None)
10:56:30.427 | INFO | Flow run 'marvellous-serval' - Created task run 'get_games-d2192cf5-4' for task 'get_games'
Fetching 5 new months of games from n80n8..
10:56:30.457 | INFO | Flow run 'marvellous-serval' - Created task run 'load_games-da437ea8-0' for task 'load_games'
GET https://api.chess.com/pub/player/n80n8/games/2022/03
10:56:39.352 | INFO | Flow run 'marvellous-serval' - Created task run 'load_games-da437ea8-1' for task 'load_games'
storing games from month 11 of year 2021...
10:56:39.424 | INFO | Flow run 'marvellous-serval' - Created task run 'load_games-da437ea8-2' for task 'load_games'
10:56:39.448 | INFO | Task run 'get_games-d2192cf5-4' - Finished in state Completed(None)
10:56:39.458 | INFO | Flow run 'marvellous-serval' - Created task run 'load_games-da437ea8-3' for task 'load_games'
storing games from month 01 of year 2022...
10:56:39.607 | INFO | Flow run 'marvellous-serval' - Created task run 'load_games-da437ea8-4' for task 'load_games'
storing games from month 12 of year 2021...
storing games from month 03 of year 2022...
10:56:40.191 | INFO | Task run 'load_games-da437ea8-0' - Finished in state Completed(None)
storing games from month 02 of year 2022...
10:56:40.271 | INFO | Task run 'load_games-da437ea8-2' - Finished in state Completed(None)
10:56:40.279 | INFO | Task run 'load_games-da437ea8-1' - Finished in state Completed(None)
10:56:40.373 | INFO | Task run 'load_games-da437ea8-4' - Finished in state Completed(None)
10:56:40.383 | INFO | Task run 'load_games-da437ea8-3' - Finished in state Completed(None)
10:56:40.654 | INFO | Flow run 'marvellous-serval' - Finished in state Completed('All states completed.')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment