Examples: query, "exact match", wildcard*, wild?ard, wild*rd
Fuzzy search: cake~ (finds cakes, bake)
Term boost: "red velvet"^4, chocolate^2
Field grouping: tags:(+work -"fun-stuff")
Escaping: Escape characters +-&|!(){}[]^"~*?:\ with \, e.g. \+
Range search: properties.timestamp:[1587729413488 TO *] (inclusive), properties.title:{A TO Z}(excluding A and Z)
Combinations: chocolate AND vanilla, chocolate OR vanilla, (chocolate OR vanilla) NOT "vanilla pudding"
Field search: properties.title:"The Title" AND text
Answered
Hi, I Have A Main Task That Creates Additional Tasks In Subprocesses. I Wish To Call Task.Init From Inside Each Child-Task So They Would Be Indifferent To The Main Task (I Wish The Child Process To Behave As If It Was Executed Standalone). I Am Aware Trai

Hi,
I have a main task that creates additional tasks in subprocesses. I wish to call Task.init from inside each child-task so they would be indifferent to the main task (I wish the child process to behave as if it was executed standalone). I am aware Trains attaches to subprocesses. This cause the Task.init called by the child process to receive the main task's task object, while I want it to create a new one, starting at the beginning of the child process. What can I do?

  
  
Posted 4 years ago
Votes Newest

Answers


Try removing this magic environment that tells the sub-process there was already an Initialized Task.

import os env = dict(**os.environ) env.pop('TRAINS_PROC_MASTER_ID', None) 🙂

  
  
Posted 4 years ago
991 Views
1 Answer
4 years ago
one year ago
Tags