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-72] Disable re-run by default. #73

Merged
merged 1 commit into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 16 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,23 @@ the plugin.

Just make sure you have proper internet access.

```groovy
plugins {
id 'nf-float'
}
```

This will download the latest version of the plugin.

If you need a specific version, you can specify the version number like this:

```groovy
plugins {
id '[email protected]'
}
```


#### Manual Install

Sometimes you want to deploy a customized plugin. In this case, you can
Expand All @@ -66,17 +77,17 @@ Go to the folder where you just install the `nextflow` command line.
Let's call this folder the Nextflow home directory.
Create the float plugin folder with:
```bash
mkdir -p .nextflow/plugins/nf-float-0.4.1
mkdir -p .nextflow/plugins/nf-float-<version>
```
where `0.4.1` is the version of the float plugin. This version number should
where `<version>` is the version of the float plugin, such as `0.4.1`. This version number should
align with the version in of your plugin and the property in your configuration
file. (check the configuration section)

Retrieve your plugin zip file and unzip it in this folder.
If everything goes right, you should be able to see two sub-folders:

```bash
$ ll .nextflow/plugins/nf-float-0.4.1/
$ ll .nextflow/plugins/nf-float-<version>/
total 48
drwxr-xr-x 4 ec2-user ec2-user 51 Jan 5 07:17 classes
drwxr-xr-x 2 ec2-user ec2-user 25 Jan 5 07:17 META-INF
Expand All @@ -89,7 +100,7 @@ file with the command line option `-c`. Here is a sample of the configuration.

```groovy
plugins {
id 'nf-float@0.4.1'
id 'nf-float'
}

workDir = '/mnt/memverge/shared'
Expand Down Expand Up @@ -172,7 +183,7 @@ Unknown config secret 'MMC_USERNAME'
To enable s3 as work directory, user need to set work directory to a s3 bucket.
```groovy
plugins {
id 'nf-float@0.4.1'
id 'nf-float'
}

workDir = 's3://bucket/path'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -361,8 +361,8 @@ class FloatGridExecutor extends AbstractGridExecutor {
getEnv(handler).each { key, val ->
cmd << '--env' << "${key}=${val}".toString()
}
cmd << '--disableRerun'
if (isFusionEnabled()) {
cmd << '--disableRerun'
cmd << '--disableMigrate'
cmd << '--extraContainerOpts'
cmd << '--privileged'
Expand Down
2 changes: 1 addition & 1 deletion plugins/nf-float/src/resources/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Manifest-Version: 1.0
Plugin-Class: com.memverge.nextflow.FloatPlugin
Plugin-Id: nf-float
Plugin-Version: 0.4.1
Plugin-Version: 0.4.2
Plugin-Provider: MemVerge Corp.
Plugin-Requires: >=23.04.0
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ class FloatBaseTest extends BaseTest {
'--cpu', realCpu + ':' + realCpu * FloatConf.DFT_MAX_CPU_FACTOR,
'--mem', realMem + ':' + realMem * FloatConf.DFT_MAX_MEM_FACTOR,
'--job', script,
'--disableRerun',
'--customTag', jobID(taskID),
'--customTag', "${FloatConf.NF_SESSION_ID}:uuid-$uuid",
'--customTag', "${FloatConf.NF_TASK_NAME}:foo--$taskIndex-",
Expand Down
Loading