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

[GH-32] Upload bin directory. #34

Merged
merged 1 commit into from
Jul 13, 2023
Merged

[GH-32] Upload bin directory. #34

merged 1 commit into from
Jul 13, 2023

Conversation

jealous
Copy link
Contributor

@jealous jealous commented Jul 11, 2023

If the workflow contains a bin directory, upload to a tmp directory in the working directory.

In .command.run script, we add export PATH=... to include the tmp directory.

@jealous jealous added the bug Something isn't working label Jul 11, 2023
@jealous jealous self-assigned this Jul 11, 2023
@bentsherman
Copy link
Contributor

It looks like you are uploading the bin dir on every task invocation. This will not scale well when you have 10,000's of tasks. Can you do the upload once when the executor is created?

Here is how AWS Batch does it:

https://github.com/nextflow-io/nextflow/blob/84f7a61a1f5c763c86cd09fa8f9c4d1a3eb0db99/plugins/nf-amazon/src/main/nextflow/cloud/aws/batch/AwsBatchExecutor.groovy#L160-L167

@bentsherman
Copy link
Contributor

AWS Batch copies the bin dir into the work dir, something like work/tmp. If you are mounting the work directory into each task, then I think you just need to add that temp directory to PATH. I believe Fusion does something similar.

@jealous
Copy link
Contributor Author

jealous commented Jul 12, 2023

Yes. This is not efficient. The reason is I couldn't find a way to insert the path. Let me do more investigation.

@jealous jealous force-pushed the bugfix/uploadBin branch from e894824 to e593040 Compare July 12, 2023 08:55
If the workflow contains a bin directory, upload to a tmp directory in
the working directory.

In `.command.run` script, we add `export PATH=...` to include the tmp
directory.
@jealous jealous force-pushed the bugfix/uploadBin branch from e593040 to 87eec32 Compare July 12, 2023 08:58
@bentsherman
Copy link
Contributor

Looks good to me 👍

@jealous jealous merged commit 8716a2b into master Jul 13, 2023
@jealous jealous deleted the bugfix/uploadBin branch July 13, 2023 02:24
jealous added a commit to jealous/plugins that referenced this pull request Jul 17, 2023
Release 0.1.8 includes multiple bugfixes:

* [GH-20] Update project's org. name. by @jealous in MemVerge/nf-float#21
* [nextflow-ioGH-22] Include auto-install in the document by @jealous in MemVerge/nf-float#23
* [nextflow-ioGH-26] Support config in process. by @jealous in MemVerge/nf-float#33
* [nextflow-ioGH-32] Upload bin directory. by @jealous in MemVerge/nf-float#34
* [nextflow-ioGH-28] Correct syntax in README. by @jealous in MemVerge/nf-float#36
* [nextflow-ioGH-29] Read credentials from ENV or secrets. by @jealous in MemVerge/nf-float#35
* [nextflow-ioGH-38] Track job with tags by @jealous in MemVerge/nf-float#39
* [nextflow-ioGH-37] Support default registry. by @jealous in MemVerge/nf-float#40

**Full Changelog**: MemVerge/nf-float@0.1.7...0.1.8
pditommaso pushed a commit to nextflow-io/plugins that referenced this pull request Jul 17, 2023
Release 0.1.8 includes multiple bugfixes:

* [GH-20] Update project's org. name. by @jealous in MemVerge/nf-float#21
* [GH-22] Include auto-install in the document by @jealous in MemVerge/nf-float#23
* [GH-26] Support config in process. by @jealous in MemVerge/nf-float#33
* [GH-32] Upload bin directory. by @jealous in MemVerge/nf-float#34
* [GH-28] Correct syntax in README. by @jealous in MemVerge/nf-float#36
* [GH-29] Read credentials from ENV or secrets. by @jealous in MemVerge/nf-float#35
* [GH-38] Track job with tags by @jealous in MemVerge/nf-float#39
* [GH-37] Support default registry. by @jealous in MemVerge/nf-float#40

**Full Changelog**: MemVerge/nf-float@0.1.7...0.1.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants