This discussion is locked
henkrek

Q: Subscribe to job

In most occasions subscriptions are used as 'Subscribe to Asset' or maybe 'Subscribe to Production'.

It should also be possible to 'Subscribe to a Job'. I don't seem to be able to get this working.

Could someone give me an example of a working subscription to a job?

8 Core MacPro, Mac OS X (10.6.2), OS X Server / FCP / FCS

Posted on Jan 12, 2011 3:16 AM

Close

Q: Subscribe to job

  • All replies
  • Helpful answers

  • by A. Richards,

    A. Richards A. Richards Jan 12, 2011 1:39 PM in response to henkrek
    Level 3 (625 points)
    Jan 12, 2011 1:39 PM in response to henkrek
    You might create a Job subscription that executes an email response to notify the admin that a job has failed. The filed values of the failed job can be placed in the email with bracketed variables. What are you trying to do with the Job subscription you can't seem to get working? Remember- the entity that the Job subscription is acting upon is the job, not the asset or file the job is referencing.
  • by henkrek,

    henkrek henkrek Jan 12, 2011 4:53 PM in response to A. Richards
    Level 1 (0 points)
    Jan 12, 2011 4:53 PM in response to A. Richards
    Thanks for replying. There are several issues I'm trying to solve by using the standard tools (as opposed to scripting)and which make me think of the job subscription as I don't know how to solve in another way:

    1. I'd love some jobs to retry when they fail. I think it's a good idea to at least send an email to the admin; I'm going to try that - I suppose the trigger would be: event: modify and trigger: status = fail?
    But would a retry work as well?

    2. This is related to another question of mine (http://discussions.apple.com/thread.jspa?threadID=2564045&tstart=0): how can I recognise a video which is restored from the archive and do something or rather don't do something with this video.
    To be more specific: when a revised video is ingested in FCS I'm deliberately overwriting the older version. As a next step I'd like to change the status of this file.
    This is achieved by a subscription, event modify and in the filter area I ticked 'trigger when changed' on the field File Modification date (without value).
    The problem I'm facing is that restoring an asset is unwillingly activating the same subsription, because the restore is creating a new File Modification Date.

    So I was searching for something to react on the restore job.

    I think a script as a reaction of the restore should easily be able to change the status of the asset. That's probably the way to go.