Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tech debt: refactor of scheduler + job updates #1033

Open
IceKhan13 opened this issue Oct 18, 2023 · 2 comments
Open

Tech debt: refactor of scheduler + job updates #1033

IceKhan13 opened this issue Oct 18, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request priority: medium Medium priority project: gateway Label to identify features related with gateway project
Milestone

Comments

@IceKhan13
Copy link
Member

What is the expected enhancement?

As a dev I want program jobs emit an event and notify backend to update status of job and results in order to remove polling logic.

Currently job updated using polling logic and django commands.

@IceKhan13 IceKhan13 added enhancement New feature or request priority: medium Medium priority project: gateway Label to identify features related with gateway project labels Oct 18, 2023
@IceKhan13 IceKhan13 added this to the 0.8 milestone Oct 18, 2023
@Tansito
Copy link
Member

Tansito commented Nov 2, 2023

Some ideas & discussions here: #644

@akihikokuroda akihikokuroda self-assigned this Nov 10, 2023
@akihikokuroda
Copy link
Collaborator

I'll try this. I'll make a prototype with

  1. wrap the entry point sent to Ray. it sends a notification to the gateway when the entry point completes execution. It eliminates the polling of the ray job status.
  2. put a signal listener for Job db changes. It can check if a Job to be scheduled and it some resources to be cleaned up.

The polling loop can be removed with these changes. It may remove the scheduler itself.

@IceKhan13 IceKhan13 modified the milestones: Q4'23, Q1'24 Dec 12, 2023
@IceKhan13 IceKhan13 modified the milestones: Q1'24, Tech debt Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority: medium Medium priority project: gateway Label to identify features related with gateway project
Projects
None yet
Development

No branches or pull requests

3 participants