Covalent version 0.110.2 is now live 🚀 #703
santoshkumarradha
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
The latest release of Covalent is now out and available for community use. It comes with new features, including the integration of Dask into Covalent as the default executor/compute backend for workflows. As part of this release, we have also updated the CLI to allow users the flexibility to choose the default compute backend
Dask
orLocal
. The default executor forelectrons
are then suitably chosen at runtime. We have also made it simpler for users to parse the logs generated by Covalent at runtime by introducing thecovalent logs
CLI command to display the logs. A summary of the feature releases is provided below:covalent logs
command to parse the logs generated at runtime.Check out the summary table below for the list of added features and read the corresponding subsections to find out more.
--no-cluster
flagcovalent logs
🔌 Dask is the default executor
With this release, running
covalent start
starts a process based Dask local cluster that is used as the default compute backend for all workflows. The number of Dask workers defaults to the number of CPU cores on the user's machine and memory per worker is assigned by Dask automatically. The default executor for the electrons is switched fromLocal
toDask
which effectively submits them to the Dask cluster for execution. One of the benefits that Dask provides in Covalent is enabling better parallelism of task execution.With these updates, users do not need to pre-install
covalent-dask-plugin
. Workflows can be constructed as usual and are executed using Dask by default.💻 Switching between Dask and Local Execution
To allow users to choose the compute backend, users can launch
covalent
without Dask by specfying the--no-cluster
flag i.ecovalent start --no-cluster
will launch Covalent with theLocal
executor as the default. Workflow graphs and result objects remain consistent in both modes of execution and the UI automatically reflects the active compute backend, i.e., eitherDask
orLocal
.UI reflecting Dask Execution
UI reflecting Local Execution
🗒️ Improved Logging
To simplify parsing logs generated via covalent, we have added
covalent logs
as a CLI command. Users can now simply executecovalent logs
to print all logs generated by covalent tostdout
.🩹 Known issues
covalent restart
does not store the state of the active execution mode/compute backend. In essence, runningcovalent restart
aftercovalent start
orcovalent start --no-cluster
always defaults the compute backend toDask
.covalent start && covalent stop && covalent start --no-cluster
, Dask Execution is still activated, despite specifying the--no-cluster
option. To prevent this behavior, users should runcovalent purge
in betweencovalent start
andcovalent start --no-cluster
if they wish to switch between Dask Execution and Local Execution.covalent start
in a jupyter notebook, then switching tocovalent start --no-cluster
and running the same cell, execution is still attempted to be made with Dask resulting in an error. To prevent this behavior, please runcovalent start --no-cluster
in a different cell or refresh the notebook.!covalent start
from a Jupyter notebook cell results in the server not starting properly. Instead runcovalent start
from a terminal.covalent-dask-plugin
is installed in the user's environment, execution of workflows fails as the Dask executor is unable to find the cluster's scheduler address. To prevent this behavior, please uninstallcovalent-dask-plugin
as it is no longer shipped as a separate package.Leptons
, the python wrapper code gets rendered to the UI instead of the Lepton's source.stdout/stderr
is not redirected properly when using theDaskExecutor
. To work around this, either avoid using print statements in electrons or run any electrons with print statements using the local executor.Contributors
This release would not have been possible without the hard work of the team at Agnostiq and our contributors:
@AgnostiqHQ , @mshkanth, @Prasy12
Beta Was this translation helpful? Give feedback.
All reactions