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

job.sh: Add synchronization helpers #3

Open
nhooyr opened this issue Nov 12, 2022 · 5 comments
Open

job.sh: Add synchronization helpers #3

nhooyr opened this issue Nov 12, 2022 · 5 comments

Comments

@nhooyr
Copy link
Contributor

nhooyr commented Nov 12, 2022

Want to be able to make runjob be able to limit the number of concurrent processes to x.

And for job's to be able to wait on an already running job before starting the very same job.

e.g. if you have two jobs to run fmt and lint and both depend on yarn being ran first to fetch dependencies.

Will require a dependency on inotifywait for linux and fswatch for macOS.

@nhooyr nhooyr changed the title parallel.sh: Add synchronization helpers job.sh: Add synchronization helpers Nov 12, 2022
@nhooyr
Copy link
Contributor Author

nhooyr commented Dec 8, 2022

When I add this I should remember to add something that also installs CI deps like prettier/goimports/pandoc automatically but serialized.

@nhooyr
Copy link
Contributor Author

nhooyr commented Dec 8, 2022

And then remember to remove from ci setup scripts.

@nhooyr
Copy link
Contributor Author

nhooyr commented Dec 8, 2022

lockfile_wait

each job represents a lockfile in $TMPDIR.

Ties into #19

@nhooyr
Copy link
Contributor Author

nhooyr commented Dec 8, 2022

No need for fsnotify, just poll.

@nhooyr
Copy link
Contributor Author

nhooyr commented Dec 13, 2022

also automatically gets package.json and go module dependencies as needed instead of having to do it in a separate step before.

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