Job requeues for unknown reason

Hi Ryan

I get a job running on windows machine performing the following task

c:\windows…\cmd.exe /C move “myfile” “thefile” & copy “thefile” “a_second_file” & copy “thefile” “a_third_file”

the job executes the above correctly then return an exit code 0 (great) but the task requeues saying there are errors

=======================================================
Error Message

Exception during render: An error occurred in RenderTasks(): Error in PreRenderTasks(): index out of range: 1
at Deadline.Plugins.ScriptPlugin.RenderTasks(Int32 startFrame, Int32 endFrame, String& outMessage)

=======================================================
Slave Log

0: Task timeout is disabled.
0: Loaded job: QT-test_001_anim_preview_v070-Rename (007_099_999_5a4eee00)
0: INFO: StartJob: initializing script plugin CommandScript
0: INFO: About: Command Script support for Deadline
0: Plugin rendering frame(s): 0-1
0: INFO: Checking line …
0: INFO: Executable found: c:\windows\system32\cmd.exe
0: INFO: Arguments found: /C move … & copy … & copy …
0: INFO: Stdout Handling Enabled: False
0: INFO: Popup Handling Enabled: False
0: INFO: Using Process Tree: True
0: INFO: Hiding DOS Window: True
0: INFO: Creating New Console: False
0: INFO: Render Executable: “c:\windows\system32\cmd.exe”
0: INFO: Render Argument: /C move … & copy … & copy …"\prod\projects\336_r3\work_temp\gdubost\scenes\copy2_test.mov" & exit /B 0
0: INFO: Startup Directory: “C:”
0: INFO: Process Priority: BelowNormal
0: INFO: Process is now running
0: STDOUT: 1 file(s) moved.
0: STDOUT: 1 file(s) copied.
0: STDOUT: 1 file(s) copied.
0: INFO: Process exit code: 0

=======================================================
Error Type

RenderPluginException

=======================================================
Error Stack Trace

at Deadline.Plugins.Plugin.RenderTask(Int32 startFrame, Int32 endFrame)
at Deadline.Slaves.SlaveRenderThread.RenderCurrentTask(TaskLogWriter tlw)

Any Idea ?

I think the problem is that you have a frame range of 0-1:

A command script job expects each “frame” to have a corresponding line in the commands file that is submitted with the job (starting at index 0). If that commands file only has the one line, that explains why it fails when it attempts “frame” 1. If you set your frame range to just 0, you should be good.

Cheers,

  • Ryan

Yeah Ryan , you re the best !
let me check that.
Thx