-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GH-75] Too many
put xxx into map
log
The old implementation list all jobs in the opCenter which is unnecessary. We should only focus on the job submitted by the plugin. Remove the full poll in the queue status update. Add the job entry when we submit it. Remove the code related to the full job poll and clean up the logs.
- Loading branch information
Showing
9 changed files
with
180 additions
and
266 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ import groovy.transform.CompileStatic | |
import groovy.util.logging.Slf4j | ||
import nextflow.exception.AbortOperationException | ||
import nextflow.io.BucketParser | ||
import org.apache.commons.lang.StringUtils | ||
import nextflow.processor.TaskId | ||
|
||
/** | ||
* @author Cedric Zhuang <[email protected]> | ||
|
@@ -194,7 +194,7 @@ class FloatConf { | |
} | ||
|
||
private static void warnDeprecated(String deprecated, String replacement) { | ||
log.warn "[float] config option `$deprecated` " + | ||
log.warn "[FLOAT] config option `$deprecated` " + | ||
"is no longer supported, " + | ||
"use `$replacement` instead" | ||
} | ||
|
@@ -213,11 +213,13 @@ class FloatConf { | |
} | ||
} | ||
|
||
List<String> getCliPrefix(String address = "") { | ||
validate() | ||
if (StringUtils.length(address) == 0) { | ||
address = addresses[0] | ||
List<String> getCliPrefix(TaskId id) { | ||
if (id == null) { | ||
id = new TaskId(0) | ||
} | ||
final address = addresses[id.intValue() % (addresses.size())] | ||
validate() | ||
|
||
def bin = FloatBin.get(address) | ||
List<String> ret = [ | ||
bin.toString(), | ||
|
@@ -232,8 +234,8 @@ class FloatConf { | |
return ret | ||
} | ||
|
||
String getCli(String address = "") { | ||
return getCliPrefix(address).join(" ") | ||
String getCli(TaskId id) { | ||
return getCliPrefix(id).join(" ") | ||
} | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.