locked
Which jobs query the activation filter RRS feed

  • Question

  • Hi,

    it was my understanding that the activation filter gets called for every job being in the status queued.
    That way I could implement fairshares, priorities  and of course licensing issues.
    However I just found out with my first own activation filter, that only the job with the highest priority of a user is queried by the activation filter.

    Is there a way to change these settings and to issue a call to the activation filter for each and every job which is in the state "scheduled"?

    Johannes
    JH
    Monday, November 23, 2009 11:32 AM

Answers

All replies

  • The activation filter is called once resources have been allocated for a job but before it is started, allowing you a last chance to prevent the job from starting (e.g. if you know that licenses are not available).  Unfortunately it does not provide a way for you to implement your own resource allocation policies.

    We are planning a number of changes to activation filters in v3 (hopefully making them more flexible) and we are also hoping to provide some features in that release that will allow you to implement your own policies.  More details on that should be available early next year (we're still finishing planning now).

    Thanks,
    Josh
    -Josh
    Monday, November 23, 2009 8:21 PM
    Moderator
  • Thanks for the answer.
    However I think of a special way like that:

    With a submission filter I could build up my own database, for special jobs  not any job! :-)
    With the activation filter I could then check this list of jobs besides the orignal job.xml which is handed over.
    I'm not so deep into the cluster API but I think I can change the job status and specs !?

    In general it would be nice to have special activation filters per  job template and not just one for the whole cluster.



    Regards,

    Johannes
    JH
    Tuesday, November 24, 2009 6:31 AM
  • Johannes,
    We've thought about providing support for multiple submission and/or activation filters (for example allowing you to specifyin the job template which filter to use).  We hope to put this in a future release of the product.

    In the meantime, the recommended way of doing this would be to:
    -Implement a Submission Filter which checks the job and then sets a Custom Property (http://msdn.microsoft.com/en-us/library/microsoft.hpc.scheduler.ischedulerjob.setcustomproperty(VS.85).aspx) detailing which activation filter to run
    -Implement an Activatin Filter which starts by checking this property, and then handles the job accordingly

    Thanks,
    Josh
    -Josh
    Tuesday, February 2, 2010 6:47 PM
    Moderator
  • FYI, I've created a bug in our database to track this issue for a future release.
    -Josh
    Tuesday, February 2, 2010 6:49 PM
    Moderator
  • Yes indeed, thanks a lot so far.
    We have tried that out.

    Further more, we tried to use the IScheduler.GetJobList to get a list
    sorted by our Custom properties. That did not work.
    Recalling the issue, it was because the ISortCollection did not support
    sorting for Custom Properties.

    If you would implement a versatile algorithm capable of sorting for
    these Custom Properties, it would help a lot.
    (S.o. could also provide their own sorting function)
    Or you implement to define the Type of the Custom Property.
    Regards,

    Johannes




    JH
    Wednesday, February 3, 2010 10:38 AM