11package nextflow.cws
22
33import groovy.transform.CompileStatic
4+ import nextflow.cws.wow.file.LocalPath
5+ import nextflow.cws.wow.file.OfflineLocalPath
6+ import nextflow.cws.wow.file.WorkdirPath
7+ import nextflow.cws.wow.filesystem.WOWFileSystemProvider
8+ import nextflow.cws.wow.serializer.LocalPathSerializer
9+ import nextflow.file.FileHelper
410import nextflow.plugin.BasePlugin
511import nextflow.trace.TraceRecord
12+ import nextflow.util.KryoHelper
613import org.pf4j.PluginWrapper
714
815@CompileStatic
@@ -14,6 +21,10 @@ class CWSPlugin extends BasePlugin {
1421
1522 private static void registerTraceFields () {
1623 TraceRecord . FIELDS . putAll( [
24+ infiles_time : ' num' ,
25+ outfiles_time : ' num' ,
26+ create_bash_wrapper_time : ' num' ,
27+ create_request_time : ' num' ,
1728 submit_to_scheduler_time : ' num' ,
1829 submit_to_k8s_time : ' num' ,
1930 scheduler_time_in_queue : ' num' ,
@@ -33,13 +44,29 @@ class CWSPlugin extends BasePlugin {
3344 scheduler_delta_submitted_batch_end : ' num' ,
3445 memory_adapted : ' mem' ,
3546 input_size : ' num' ,
47+ scheduler_files_bytes : ' num' ,
48+ scheduler_files_node_bytes : ' num' ,
49+ scheduler_files_node_other_task_bytes : ' num' ,
50+ scheduler_files : ' num' ,
51+ scheduler_files_node : ' num' ,
52+ scheduler_files_node_other_task : ' num' ,
53+ scheduler_depending_task : ' num' ,
54+ scheduler_location_count : ' num' ,
55+ scheduler_nodes_to_copy_from : ' num' ,
56+ scheduler_no_alignment_found : ' num' ,
57+ scheduler_time_delta_phase_three : ' str' ,
58+ scheduler_copy_tasks : ' num' ,
3659 ] )
3760 }
3861
3962 @Override
4063 void start () {
4164 super . start()
4265 registerTraceFields()
66+ KryoHelper . register( LocalPath , LocalPathSerializer )
67+ KryoHelper . register( OfflineLocalPath , LocalPathSerializer )
68+ KryoHelper . register( WorkdirPath , LocalPathSerializer )
69+ FileHelper . getOrInstallProvider(WOWFileSystemProvider )
4370 }
4471
4572}
0 commit comments