Skip to content

Commit

Permalink
log: ray dashboard to port 8265
Browse files Browse the repository at this point in the history
  • Loading branch information
polomarcus committed May 30, 2024
1 parent 0e72f7d commit 2c2fc83
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,10 @@ The SQL queries are based on this file that generate the Program Metadata table.

**With the docker-entrypoint.sh this command is done automatically, so for production uses, you will not have to run this command.**

## Production monitoring
* Use scaleway
* Use [Ray dashboard] on port 8265

### Fix linting
Before committing, make sure that the line of codes you wrote are conform to PEP8 standard by running:
```bash
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ services:
mediatree:
ports:
- 5050:5050
- 8265:8265
build:
context: ./
dockerfile: Dockerfile_api_import
Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion quotaclimat/data_processing/mediatree/api_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,16 @@ def get_channels():
async def get_and_save_api_data(exit_event):
with sentry_sdk.start_transaction(op="task", name="get_and_save_api_data"):
try:
ray.init(
context = ray.init(
dashboard_host="0.0.0.0", # for docker dashboard
_system_config={

"object_spilling_config": json.dumps(
{"type": "filesystem", "params": {"directory_path": "/tmp/spill"}},
)
},
)
logging.info(f"ray context dahsboard : {context.dashboard_url}")
conn = connect_to_db()
token=get_auth_token(password=password, user_name=USER)
type_sub = 's2t'
Expand Down

0 comments on commit 2c2fc83

Please sign in to comment.