Post Job should fail after one error

Discussion and Support of Deadline, the Render Management System
spearsc
Posts: 49
Joined: Tue Nov 29, 2016 5:23 pm

Post Job should fail after one error

Postby spearsc » Thu Sep 07, 2017 2:01 pm

I am working on a Post Job that we want to run after a Maya render completes. Sometimes the job fails, and then it is requeued until a limit is reached. The problem with this is that the Post Job generates Shotgun entities. If the job is requeued, then it can generate dozens of entities!

I know you can limit the number of times a job or task is requeued before it is set to failed. Can I set this just for the Post Job?

Thanks

User avatar
kmind
Posts: 52
Joined: Wed Apr 29, 2015 10:34 am

Re: Post Job should fail after one error

Postby kmind » Fri Sep 08, 2017 2:23 am

Cant you just push the SG stuff in "on job complete event"?
https://docs.thinkboxsoftware.com/produ ... ugins.html
junior FX artist/TD, Code Monkey at BottleShipVFX. xD

eamsler
Posts: 1827
Joined: Thu Dec 16, 2010 1:02 pm
Location: Winnipeg, MB, Canada

Re: Post Job should fail after one error

Postby eamsler » Fri Sep 08, 2017 9:05 am

OnJobComplete is definitely a good way to go.
Edwin Amsler
Head of Support
Thinkbox Software Inc
+1-866-419-0283 ext 804

Winnipeg

spearsc
Posts: 49
Joined: Tue Nov 29, 2016 5:23 pm

Re: Post Job should fail after one error

Postby spearsc » Fri Sep 08, 2017 10:21 am

Thanks Edwin! I'll take a look!

spearsc
Posts: 49
Joined: Tue Nov 29, 2016 5:23 pm

Re: Post Job should fail after one error

Postby spearsc » Fri Sep 08, 2017 1:39 pm

Forgot to thank kmind as well!

So...I am just trying to make sure I am on the right track...

Is the idea to create a custom event plugin that fires when the job completes?

eamsler
Posts: 1827
Joined: Thu Dec 16, 2010 1:02 pm
Location: Winnipeg, MB, Canada

Re: Post Job should fail after one error

Postby eamsler » Mon Sep 11, 2017 3:24 pm

Yup! Here's some info:

Docs on the subject:
https://docs.thinkboxsoftware.com/produ ... ugins.html

Feature Blog:
http://deadline.thinkboxsoftware.com/fe ... nt-plugins

You can also pull a bunch of examples from you Repository at:
"[repo]\events"
Edwin Amsler
Head of Support
Thinkbox Software Inc
+1-866-419-0283 ext 804

Winnipeg


Return to “Thinkbox Software - Deadline”

Who is online

Users browsing this forum: No registered users and 5 guests