Deadlinecommand ExecuteScript

Hello,
is it possible to run a python script with deadlinecommand ExecuteScript passing some arguments as well? using argparse, for instance ?

I tried but I am getting an error that 0 arguments are expected. Not sure if there is something I am missing.

Thanks!

Hello

Thanks for reaching out. I think you can run your script using this and to pass the args make functions call them in main() method and pass args there. You cannot pass args to deadlinecommand

See here: Job Scripts — Deadline 10.2.1.1 documentation

Hey, thanks for the quick reply.

Yeah I was afraid that was the case. I was looking for a way to pass some arguments from the user upon script execution.
Anyway, I 'll probably have to work around it.

Thanks again!

1 Like