-
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.
arch: complete raising
application
policy level
- Loading branch information
1 parent
011b1b8
commit 05db018
Showing
34 changed files
with
194 additions
and
256 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
File renamed without changes.
21 changes: 21 additions & 0 deletions
21
src/pixel_battle/deployment/chunk_image_refresh_orchestrator/__main__.py
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import asyncio | ||
|
||
from pixel_battle.deployment.chunk_image_refresh_orchestrator.di import ( | ||
container, | ||
) | ||
from pixel_battle.presentation.distributed_tasks.refresh_chunk_view import ( | ||
RefreshChunkViewTask, | ||
) | ||
|
||
|
||
async def main() -> None: | ||
task = await container.get(RefreshChunkViewTask) | ||
|
||
try: | ||
await task.start_pushing() | ||
finally: | ||
await container.close() | ||
|
||
|
||
if __name__ == "__main__": | ||
asyncio.run(main()) |
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
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
src/pixel_battle/deployment/chunk_image_refresh_script/__main__.py
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import asyncio | ||
|
||
from pixel_battle.deployment.chunk_image_refresh_script.di import container | ||
from pixel_battle.presentation.scripts.refresh_chunk_image import ( | ||
RefreshChunkImageScript, | ||
) | ||
|
||
|
||
async def main() -> None: | ||
script = await container.get(RefreshChunkImageScript) | ||
|
||
try: | ||
await script() | ||
finally: | ||
await container.close() | ||
|
||
|
||
if __name__ == "__main__": | ||
asyncio.run(main()) |
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
File renamed without changes.
19 changes: 19 additions & 0 deletions
19
src/pixel_battle/deployment/chunk_image_refresh_worker/__main__.py
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import asyncio | ||
|
||
from pixel_battle.deployment.chunk_image_refresh_worker.di import container | ||
from pixel_battle.presentation.distributed_tasks.refresh_chunk_view import ( | ||
RefreshChunkViewTask, | ||
) | ||
|
||
|
||
async def main() -> None: | ||
task = await container.get(RefreshChunkViewTask) | ||
|
||
try: | ||
await task.start_pulling() | ||
finally: | ||
await container.close() | ||
|
||
|
||
if __name__ == "__main__": | ||
asyncio.run(main()) |
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,12 +1,10 @@ | ||
from pixel_battle.deployment.chunk_reading_service.di import ( | ||
chunk_reading_service_container, | ||
) | ||
from pixel_battle.deployment.chunk_reading_service.di import container | ||
from pixel_battle.deployment.common.asgi import ASGIApp, LazyASGIApp | ||
from pixel_battle.presentation.web.app import app_from | ||
|
||
|
||
async def app_factory() -> ASGIApp: | ||
return await app_from(chunk_reading_service_container) | ||
return await app_from(container) | ||
|
||
|
||
app = LazyASGIApp(factory=app_factory) |
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
23 changes: 0 additions & 23 deletions
23
src/pixel_battle/deployment/chunk_stream_compression_coordination_service/__main__.py
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
src/pixel_battle/deployment/chunk_stream_compression_service/__main__.py
This file was deleted.
Oops, something went wrong.
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,12 +1,10 @@ | ||
from pixel_battle.deployment.chunk_streaming_service.di import ( | ||
chunk_streaming_service_container, | ||
) | ||
from pixel_battle.deployment.chunk_streaming_service.di import container | ||
from pixel_battle.deployment.common.asgi import ASGIApp, LazyASGIApp | ||
from pixel_battle.presentation.web.app import app_from | ||
|
||
|
||
async def app_factory() -> ASGIApp: | ||
return await app_from(chunk_streaming_service_container) | ||
return await app_from(container) | ||
|
||
|
||
app = LazyASGIApp(factory=app_factory) |
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,12 +1,10 @@ | ||
from pixel_battle.deployment.chunk_writing_service.di import ( | ||
chunk_writing_service_container, | ||
) | ||
from pixel_battle.deployment.chunk_writing_service.di import container | ||
from pixel_battle.deployment.common.asgi import ASGIApp, LazyASGIApp | ||
from pixel_battle.presentation.web.app import app_from | ||
|
||
|
||
async def app_factory() -> ASGIApp: | ||
return await app_from(chunk_writing_service_container) | ||
return await app_from(container) | ||
|
||
|
||
app = LazyASGIApp(factory=app_factory) |
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
Oops, something went wrong.