You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I have a task with no arguments to run the task it works as expected but I can't ever pass arguments into the task.
(challenger_deep) ubuntu@ip-10-65-199-196:~/example$ redun run --no-cache command_line_task.py call_cli_task
[redun] redun :: version 0.22.0
[redun] config dir: /home/ubuntu/example/.redun
[redun] Start Execution f93c9d9e-3f0e-4c38-b3eb-c5279084955f: redun run --no-cache command_line_task.py call_cli_task
[redun] Run Job d10d3376: example.command_line_task.call_cli_task(task_args=<class 'inspect._empty'>, task_kwargs=<class 'inspect._empty'>) on default
[redun] Run Job 9e664195: example.command_line_task.cli_task(task_args='foo', task_kwargs=<class 'inspect._empty'>) on default
[redun]
[redun] | JOB STATUS 2024/09/12 17:35:37
[redun] | TASK PENDING RUNNING FAILED CACHED DONE TOTAL
[redun] |
[redun] | ALL 0 0 0 0 2 2
[redun] | example.command_line_task.call_cli_task 0 0 0 0 1 1
[redun] | example.command_line_task.cli_task 0 0 0 0 1 1
[redun]
[redun]
[redun] Execution duration: 0.03 seconds
'foo'
I recognize that the solution to this is to specially write command line tasks which are not wrapped. It would be really cool if I could call a wrapped task from the command line however.
Thanks!
The text was updated successfully, but these errors were encountered:
Thanks for posting this @ktthross. This is a very reasonable request. We're thinking through a possible way for the outer task to inherit the signature of the inner task. This will then allow the CLI invoking (which uses the task signature to auto-create the CLI options) to work as expected.
Running on:
(challenger_deep) ubuntu@ip-10-65-199-196:~/example$ redun --version 0.22.0
I am sharing two files. The first is the simplest wraps_task I can think of.
Next is three functions which I intend to call as the first function redun executes.
When I run the non_wrapped task I get the expected behavior
When I run the wrapped cli_task I get an error when redun trys to parse the input arguments
When I have a task with no arguments to run the task it works as expected but I can't ever pass arguments into the task.
I recognize that the solution to this is to specially write command line tasks which are not wrapped. It would be really cool if I could call a wrapped task from the command line however.
Thanks!
The text was updated successfully, but these errors were encountered: