Menu

Can multiple-tasks depend on single task ?

Anonymous
2012-03-07
2012-12-11
  • Anonymous

    Anonymous - 2012-03-07

    Can multiple-tasks depend on single task in different blocks (the dependency is not based on frame number) ?
    Or task depends on other task in one block ?

     
  • Timur Hairulin

    Timur Hairulin - 2012-03-07

    Hi. You can use http://cgru.sourceforge.net/afanasy/doc/job_block.html#FramesPerTask function even with blocks based on individual commands.

    Later i am going to add a feature that allows to set task depend on any other task(s) from the same or different block. For some special cases. But for most cases frames per task parameter is enough.
    You can even use block.setDependSubTask() for simulations to start multiply task on one task sub-progress.

     
  • Anonymous

    Anonymous - 2012-03-08

    Can you give me some example about "Frames Per Task" ?
    Thank you !

     
  • Timur Hairulin

    Timur Hairulin - 2012-03-08

    For example 1st block has 100 tasks, and 2nd 10 tasks.
    If blocks are numeric, dependence will be calculated correctly automatically, but if is not:
    If you wand first 10 tasks from 1st block to wait 1st task from 2nd block, you can block2.setFramesPerTask(10)
    If 2nd block is numeric, and already has FramesPerTask=1, and 1st block needed to do some sub-frame work, you can
    block1.setFramesPerTask(-10). This negative value considered as 1/10.

    By default (on creation) non numeric blocks has FramesPerTask=1.
    see view-source:http://cgru.sourceforge.net/afanasy/doc/python_class_block.html

     
  • Anonymous

    Anonymous - 2012-03-08

    Thank you !

     

Log in to post a comment.