-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add target_job_queue to SubmitAnyscaleJob operator #52
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @RCdeWit, thanks a lot for contributing these changes.
Please, add tests and update the docs with this feature, explaining the current limitation that the queues should be previously created.
Also, should we update the RolloutAnyscaleService
operator so that we allow the creation of these queues and users don't have to manually create those? Does this version of the Anyscale SDK support this?
Hi @tatiana, I'm happy to update the docs. I'm struggling somewhat with how I should implement the test; my knowledge of PyTest is very surface level. Please advice on whether my current attempt makes sense.
It would have to be the Would it make sense to incorporate this into the |
@RCdeWit I gave this some thought and I think it makes sense to extend the Placing ourselves in the position of an end-user, they would need to submit a job via the SDK to create a new job queue but this means:
i.e. If we had an SDK that looks like
In terms of testing, here are general best practices
Now, in the case of this PR, we are simply extending the So, there are two places where we can add tests:
To find the unit tests, look under:
Given the hook behavior of fetching the job status doesn't change, no need to add tests for the hook. Same applies to the trigger. Looking at the To find the integration test, look under:
You will see that the integration test is running by executing the dags under There are two dags under
The The
The nice thing is the example dag will also serve as documentation for the new functionality (see how docs/index.rst refers to the script via .. literalinclude:: ../example_dags/anyscale_job.py). I have created a branch that implements all the above changes, feel free to either:
let me know which is most convenient for you |
Co-authored-by: marwan116 <[email protected]>
This reverts commit 4262f96.
Thanks, @marwan116, much appreciated! I have copied over the changes from your separate branch. TBH, commits directly to this branch would've been more convenient. But it works now. 😄 |
As described here: #44
Adds two optional parameters to submit to existing job queues. Does not implement creation of new job queues.