Skip to content

job.sh: Add synchronization helpers #3

Open

Description

@nhooyr

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.

Activity

  1. changed the title [-]parallel.sh: Add synchronization helpers[/-] [+]job.sh: Add synchronization helpers[/+] on Nov 12, 2022
  2. nhooyr commented on Dec 8, 2022

    @nhooyr
    ContributorAuthor

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

  3. nhooyr commented on Dec 8, 2022

    @nhooyr
    ContributorAuthor

    And then remember to remove from ci setup scripts.

  4. nhooyr commented on Dec 8, 2022

    @nhooyr
    ContributorAuthor

    lockfile_wait

    each job represents a lockfile in $TMPDIR.

    Ties into #19

  5. nhooyr commented on Dec 8, 2022

    @nhooyr
    ContributorAuthor

    No need for fsnotify, just poll.

  6. nhooyr commented on Dec 13, 2022

    @nhooyr
    ContributorAuthor

    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions