AWS Thinkbox Discussion Forums

PostTaskScript not execute my script when task complete!

my python script:
from Deadline.Scripting import *
import subprocess
def main( *args ):
subprocess.call([r’N:\1_Scripts\test_py_scripts\delete_folder_mapping.bat’])

I got the same issue with PostTaskScript.

With the script below, when I tried to assign to PreTaskScript, it worked. But it never work with PostTaskScript:

import subprocess
def __main__( *args ):
    f = open(r"D:\Test\check.txt", "w")
    f.write("Nothing goes here!")
    f.close()
    subprocess.call([r'D:\Scripts\python_script\scan.bat'])
1 Like

When that script fails as a PostTaskScript, are there any errors being thrown?

1 Like

No, I did not see any errors!

Privacy | Site terms | Cookie preferences