Module Expr Str ImportFrom alias Import alias Import alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Str Assign NameStore BinOpMult Num Num Assign NameStore Call NameLoad Str Num FunctionDef arguments args NameParam NameParam defaults body Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num body With Call AttributeLoad AttributeLoad NameLoad attr attr body If CompareEq AttributeLoad AttributeLoad NameLoad attr attr Num body Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Import alias Import alias Assign NameStore BinOpSub Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr NameLoad If BoolOpAnd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad CompareLt AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr attr Expr Call AttributeLoad NameLoad attr Str NameLoad AttributeLoad NameLoad attr Return Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad Call NameLoad NameLoad Str attr decorator_list decorator_list
N/A N/A 
A module containing classes used to simulate certain behaviors
 multiprocessing Value N/A tempfile N/A hashlib N/A logging N/A os N/A luigi N/A logger N/A N/A logging getLogger luigi-interface RunAnywayTarget N/A N/A luigi Target N/A N/A 
    A target used to make a task run everytime it is called.

    Usage:

    Pass `self` as the first argument in your task's `output`:

    .. code-block: python

        def output(self):
            return RunAnywayTarget(self)

    And then mark it as `done` in your task's `run`:

    .. code-block: python

        def run(self):
            # Your task execution
            # ...
            self.output().done() # will then be considered as "existing"
     N/A temp_dir N/A N/A N/A os path join N/A N/A tempfile gettempdir luigi-simulate N/A temp_time N/A 24 3600 N/A unique N/A Value i 0 __init__ N/A N/A self task_obj N/A N/A N/A N/A self task_id N/A task_obj task_id N/A N/A N/A N/A self unique value 0 N/A N/A N/A N/A N/A self unique get_lock N/A N/A N/A N/A N/A self unique value 0 N/A N/A N/A N/A self unique value N/A N/A os getpid N/A N/A N/A N/A os path isdir N/A self temp_dir N/A N/A shutil N/A time N/A limit N/A N/A N/A time time N/A self temp_time N/A fn N/A N/A os listdir N/A self temp_dir N/A N/A path N/A N/A N/A os path join N/A self temp_dir fn N/A N/A N/A N/A N/A os path isdir path N/A N/A N/A N/A os stat path st_mtime limit N/A N/A N/A N/A shutil rmtree path N/A N/A N/A logger debug Deleted temporary directory %s path N/A get_path N/A N/A self N/A N/A N/A 
        Returns a temporary file path based on a MD5 hash generated with the task's name and its arguments
         N/A md5_hash N/A N/A N/A N/A hashlib md5 N/A N/A N/A self task_id encode hexdigest N/A N/A N/A logger debug Hash %s corresponds to task %s md5_hash N/A self task_id N/A N/A N/A N/A os path join N/A self temp_dir N/A str N/A N/A self unique value md5_hash N/A exists N/A N/A self N/A N/A N/A 
        Checks if the file exists
         N/A N/A N/A N/A os path isfile N/A N/A self get_path N/A done N/A N/A self N/A N/A N/A 
        Creates temporary file to mark the task as `done`
         N/A N/A N/A logger info Marking %s as done self N/A fn N/A N/A self get_path N/A N/A N/A os makedirs N/A N/A N/A os path dirname fn exist_ok True N/A N/A N/A N/A open fn w close N/A N/A