Custom Deadline submission code for caching
#4
Ok, well basically what happens when you press the Deadline button is I get the deadline repository root and load in

Code:
submitMaxToDeadline_Functions.ms

Then call

Code:
SMTDFunctions.loadSettings()

which fills a global variable called

Code:
SMTDSettings

which I modify with my job name, priority, chunksize, etc. And then I call the rest of the functions necessary to submit the job with those settings.

Since SMTDSettings is a global variable and it contains the struct SMTDSettingsStructure which is fully exposed in "submitMaxToDeadline_Functions.ms", it's conceivable that I could add an optional MAXScript section of the Deadline submission rollout, where you can add your own custom settings that would be applied after tyFlow fills the struct with it's own stuff. So you'd enter something like:

Code:
SMTDSettings.DraftSubmitJob = true
SMTDSettings.ExtraInfo0 = "test"
SMTDSettings.WarnAboutMissingExternalFiles = false
--etc

And then I'd just directly execute that script prior to submission, thereby applying all of your settings as the job is sent along.

Would that work?
  Reply


Messages In This Thread
RE: Custom Deadline submission code for caching - by tyFlow - 10-04-2022, 12:02 AM

Forum Jump: