Autoinstall is very slow if a package is installed
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 23
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 17
Description
If you run a job with the autoinstall flag, and the adaptor you want is already installed, it takes about 1-1.5 seconds longer to run the job. I suspect this involves a version lookup if no version is passed.
In other words, this can be very slow even if the module is installed:
openfn job.js -ia dhis2
We should work out a quicker way to tell if there' s a reasonable matching version installed.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing openfn job.js -ia dhis2 with the adaptor already installed, then trace the CLI autoinstall path and its version lookup. Identify why the installed-adaptor case waits and verify that a reasonable matching version skips the delay without breaking installation or version selection.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli, performance
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100