Skip to content

Developer info on the Nextflow database #2401

Answered by pditommaso
raivivek asked this question in Q&A
Discussion options

You must be logged in to vote

We don't consider it a public API. You can reverse engineer at your own risk following this code

final task = handler.task
final proc = task.processor
final key = task.hash.asBytes()
// save the context map for caching purpose
// only the 'cache' is active and
TaskContext ctx = proc.isCacheable() && task.hasCacheableValues() ? task.context : null
def record = new ArrayList(3)
record[0] = trace.serialize()
record[1] = ctx != null ? ctx.serialize() : null
record[2] = 1
// -- save in the db
db.put( key, KryoHelper.seri…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@raivivek
Comment options

@pditommaso
Comment options

Answer selected by raivivek
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2400 on October 19, 2021 21:50.