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
{{ message }}
Repository navigation
Saving a command file needs both requires_dir and save_files keys #21
The documentation says that you need a save_files key, which makes sense, but that only works if you also have a requires_dir key too. Without either key, or with just the save_files key, the files are saved to artifacts/submissions/0/tmp. Only when using both keys, are the named files saved under artifacts/tasks.
The docs kinda suggest that save_files saves files, but there's nothing to explain that it only works if you use requires_dir. requires_dir doesn't have any explanation.
In the first instance, the docs should reflect how things actually work, but longer term, it would make more sense if save_files did what the name suggests without needing an undocumented helper key (requires_dir).
The above workflow runs just fine, but if you remove requires_dir: true from either action within the process_data_without_input_file_generator task, the workflow fails as described in the initial comment above.
Activity
gcapes commentedon Mar 19, 2026
@aplowman
An example for reproducing this behaviour is in the docs: https://docs.matflow.io/stable/user/getting_started/advanced_workflow_concepts.html
The python scripts required for this are on the previous page: https://docs.matflow.io/stable/user/getting_started/custom_task_schemas_and_workflows.html#example-workflow
The above workflow runs just fine, but if you remove
requires_dir: truefrom either action within theprocess_data_without_input_file_generatortask, the workflow fails as described in the initial comment above.