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

[Documentation] code loading/organization docs #156

Open
kleinschmidt opened this issue Sep 27, 2023 · 0 comments
Open

[Documentation] code loading/organization docs #156

kleinschmidt opened this issue Sep 27, 2023 · 0 comments

Comments

@kleinschmidt
Copy link
Member

Internally we've been using a "package-based" code loading strategy: work functions/constants are defined in a MyJob package, where you have a name="MyJob" in the Project.toml and a src/MyJob.jl, along with a driver script that does

using Ray
Ray.@ray_import begin
    using MyJob
    using AnotherDependency
end

MyJob.do_work_with_ray()

We shoudl document this pattern and why it's used (i.e., limitations with the existing code loading system, global refs, etc.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant