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

feat: [draft] job types #339

Open
TorchedSammy opened this issue Dec 30, 2024 · 1 comment
Open

feat: [draft] job types #339

TorchedSammy opened this issue Dec 30, 2024 · 1 comment

Comments

@TorchedSammy
Copy link
Member

to facilitate #276 in my mind i am thinking that i should add a function for the hilbish job interface to just handle running generic commands outside of the shell intepreter. (this is a bit of an abstraction, and prevents me adding another command just to add a go native "command handle" management and whatever)

so to hold a less than part time spot in the job handler, jobs can have 2 types:

  • intern
  • part time

an "intern" job is just there to run commands for a runner. but if a runner wants to suspend it, the job will be promoted to part time and then sent the signal. using these terms might be a bit confusing, but itll still work anyway.

@TorchedSammy
Copy link
Member Author

TorchedSammy commented Dec 30, 2024

hilbish.jobs.add will by default create a part time job. if a runner wants to add an intern job, like one that is implementing commands in any capacity, instead of using either hilbish.run or os.execute, or me adding another hack function to run a command and be able to create a job from it (as is done currently in the pr) to hilbish.jobs, they can add the 4th and new optional arg to specify the job type (intern or part time)

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