List of changes in the v0.10 release
Table of contents
- [Resources costs](costs)
- [Tasks cost](taskcosts)
- [Storage cost](storagecosts)
- [Improve visibility of the Task’s life cycle](taskslife)
- [Terminate an ongoing Task from the Console](killtask)
- [Input and output files: Download to local computer](download)
- [Get a URL to download input and output files](url)
- [Download the Task’s Logs from Console](logs)
- [c4 and n4 machines available](machines)
- [New simulator Quantum Espresso](simulator)
- [More rich content](content)
Resources costs <a name="costs"></a>
Users were already aware of their [credits](https://docs.inductiva.ai/en/latest/api_reference/tiers_and_quotas.html), and now they also gain visibility over the costs of the resources they use and create, namely tasks and storage.
Tasks cost <a name="taskcosts"></a>
[396](https://github.com/inductiva/tasks/issues/396), [#438](https://github.com/inductiva/tasks/issues/438), [#161](https://github.com/inductiva/console-web/issues/161), [#186](https://github.com/inductiva/console-web/issues/186), [#454](https://github.com/inductiva/tasks/issues/454)
In order for the user to realize the estimated cost of each task, it’s now displayed together with other task’s details, namely:
- In [CLI](https://docs.inductiva.ai/en/latest/cli/cli-overview.html), by running the command inductiva task info <task_id>;
- In the prints resulting from task info or task get_info() in python scripts;
- In the [Console](https://console.inductiva.ai/), in the Tasks list, as well as each task’s detail.
Storage cost <a name="storagecosts"></a>
[447](https://github.com/inductiva/tasks/issues/447), [#194](https://github.com/inductiva/console-web/issues/194)
After the simulations finish, the outputs are stored in the user’s remote storage bucket, at a cost. Here’s how to check the total storage size used and its Cost per month:
In [CLI](https://docs.inductiva.ai/en/latest/cli/cli-overview.html), by running the command inductiva storage size or inductiva storage list;
In the [Console](https://console.inductiva.ai/), on top of the Storage area.
Improve visibility of the Task’s life cycle <a name="taskslife"></a>
[413](https://github.com/inductiva/tasks/issues/413), [#412](https://github.com/inductiva/tasks/issues/412), [#175](https://github.com/inductiva/console-web/issues/175), [#402](https://github.com/inductiva/tasks/issues/402)
A new feature was created to enable the user to [track their task](https://docs.inductiva.ai/en/latest/cli/tracking-tasks.html) in real time and better perceive the stages it goes through, why it got there and realize the recommendations to overcome or avoid an unwanted status.
This feature coordinates several resources, so that the user takes advantage of the range of assets provided by Inductiva, while being supplied with different degrees of detail - succinct and to-the-point descriptions for immediate understanding and action, and more detailed descriptions for deeper comprehension of the tasks’ life cycle.
Here’s a quick overview of the ensemble:
- If the user chooses to run task wait() in their script, the [CLI](https://docs.inductiva.ai/en/latest/cli/cli-overview.html) will print regular short messages that help the user keep track of what’s happening.
- A link to the Console is also printed, so that the user can seamlessly navigate to the ongoing task’s detail screen, where a bit more descriptive information is provided.
- In the task’s detail screen in the Console, a timeline can be found with the statuses that the task has consecutively reached and their respective timestamps. By clicking these statuses an expanded area becomes visible, with a brief description of the context behind it.
- For the users who’d like to go deeper into the tasks’ life cycle, a link to the [Tutorials](https://tutorials.inductiva.ai/intro_to_api/tasks.html#task-lifecycle) is displayed next to the timeline, directing the user thorough documentation that includes a flowchart and detailed descriptions of What happened, Why, and Recommendations to overcome.
[390](https://github.com/inductiva/tasks/issues/390) To facilitate even more the task tracking in real time through the Console, the Tasks list and Task’s detail screens can be refreshed manually by clicking the button on the top right corner, or automatically, every 15 seconds, by turning on the “Auto refresh” toggle.
Terminate an ongoing Task from the Console <a name="killtask"></a>
[158](https://github.com/inductiva/console-web/issues/158)
The [Console](https://console.inductiva.ai/) becomes another interface for the user to expedite daily actions, namely terminate a running Task from its detail screen.
While the task is executing, a button becomes visible on the top right corner, and the user has the ability to terminate that task merely by clicking it. Naturally, the user is prompted to confirm the action, after which the following actions are automatically performed: the task is killed; the termination button is no longer visible; the screen is refreshed to show the task's updated status and other data.
Input and output files: Download to local computer <a name="download"></a>
[349](https://github.com/inductiva/tasks/issues/349), [#151](https://github.com/inductiva/console-web/issues/151), [#1606](https://github.com/inductiva/inductiva/pull/1606), [#392](https://github.com/inductiva/tasks/issues/392)
Several improvements were implemented to provide quick and easy downloading of a Task’s input and output files from the user’s remote storage bucket to their local computer.
Inputs are only available to be downloaded after the task has started. Outputs are only available when the task is finished.
From the Console, the task’s detail screen displays the “Input” and “Output” sections, both now include buttons to download the files - to the ‘Downloads’ default folder configured in the web browser being used to access the Console.
The user has always been able to [download the outputs](https://docs.inductiva.ai/en/latest/how_to/manage_and_retrieve_results.html#downloading-outputs) from the python client / CLI, and they are now able to also download the inputs.
By default, all files are downloaded to a directory named after the task ID, within a parent directory named “inductiva_output”.
To better organize this content,
the default location for the input files is inductiva_output\<task_id>\inputs,
and for the output it’s inductiva_output\<task_id>\outputs,
but the user can select any other location, by setting the parent directory name using the inductiva.set_output_dir function.
Here’s a few examples in CLI:
download all output files (default)
inductiva tasks download <task ID>
download all input files
inductiva tasks download <task ID> --input
download all output files
inductiva tasks download <task ID> --output
download all input and output files
inductiva tasks download <task ID> --input --output
download selected input and output files
inductiva tasks download <task ID> --input --output --filenames input.json stdout.txt
Example in Python:
import inductiva
task = inductiva.tasks.Task("<task ID>")
download all inputs
task.download_inputs()
select some input files to download
task.download_inputs(
input_dir='json-file-and-control-txt',
filenames=['input.json', 'control.txt'],
)
Get a URL to download input and output files <a name="url"></a>
[150](https://github.com/inductiva/console-web/issues/150), [#151](https://github.com/inductiva/console-web/issues/151)
This URL enables users to download the files via a web browser, or can be shared so that others can do the same.
Inputs’ URL is only available after the task has started. Outputs’ URL is only available when the task is finished.
The URLs can be retrieved:
- From the Console, in the “Input” and “Output” sections in the task’s detail screen
- In python scripts: task.get_input_url() and task.get_output_url()
Download the Task’s Logs from Console <a name="logs"></a>
[168](https://github.com/inductiva/console-web/pull/168)
Besides [streaming the logs of a running task in real time](https://docs.inductiva.ai/en/latest/cli/streaming-logs.html) and additional [sub-methods to access logs](https://github.com/inductiva/inductiva/releases/tag/v0.7.2), the user was already capable of downloading the log files (stdout.txt and stderr.txt) by using download_outputs().
Even if the task fails, the user is still be able to download the logs.
The Console also provides easy ways to access these files:
- Download logs - button in the “Output” section of the task’s detail screen;
- Display Logs - button “Display task logs” right next to “Input” and “Output” sections.
c4 and n4 machines available <a name="machines"></a>
[358](https://github.com/inductiva/tasks/issues/358), [#414](https://github.com/inductiva/tasks/issues/414)
These [powerful machine series](https://cloud.google.com/blog/products/compute/a-closer-look-at-compute-engine-c4-and-n4-machine-series) are ready for use in Inductiva’s cloud.
Check out other [available computational resources](https://tutorials.inductiva.ai/intro_to_api/computational-infrastructure.html#available-computational-resources) with function inductiva resources available.
New simulator Quantum Espresso <a name="simulator"></a>
[367](https://github.com/inductiva/tasks/issues/367)
[Quantum ESPRESSO](https://inductiva.ai/simulators/quantum-espresso) is an open-source software suite widely used for electronic structure calculations and materials modeling at the nanoscale.
The [documentation](https://tutorials.inductiva.ai/simulators/QuantumEspresso.html#) details: how to set it up for use with Inductiva API; A code example to get started; The list of allowed commands.
The complete list of integrated simulators is available on the [website](https://inductiva.ai/simulators) or using the Python method inductiva simulators list.
More rich content <a name="content"></a>
[361](https://github.com/inductiva/tasks/issues/361), [#362](https://github.com/inductiva/tasks/issues/362)
Inductiva provides a myriad of rich content and resources to the advantage of the community that follows our work. These are posted publicly on the [tutorials](https://tutorials.inductiva.ai/), [blog](https://inductiva.ai/blog), [website](https://inductiva.ai/simulators) and also other well-known repositories, such as [Hugging face](https://huggingface.co/inductiva) or [Docker Hub](https://hub.docker.com/r/inductiva/kutu).
Take a look at some of the latest published works:
- [OpenFoam advanced Example](https://tutorials.inductiva.ai/simulators/OpenFOAM.html#advanced-example-running-mb9-micro-benchmark-by-exafoam): Running MB9 Micro-benchmark by ExaFOAM
- [Wind Tunnel dataset](https://huggingface.co/datasets/inductiva/windtunnel-20k)