Instead, we introduce the concept of job monitoring, and its implementation in AiiDA as of version 2.2.0, schematically shown in Fig. ). In this case, the main cell cycling task is submitted as a single task, programmed to perform the maximum desired number of cycles. In parallel to the submission of the main task, AiiDA can be instructed to perform job monitoring of that task. This is achieved by periodically polling the main task for data, which, based on a pre-defined criterion, allows the main task to continue or triggers its early termination. Of course, the measured data of the terminated tasks is retrieved by AiiDA, with the task completion status (including any decision by the job monitor) annotated accordingly, as shown in the provenance graph in Figs. and. Further steps in the workflow, such as the safety discharge step shown here, are not affected.