should_stop_children

atomate2.cp2k.run.should_stop_children(task_document, handle_unsuccessful=SETTINGS.CP2K_HANDLE_UNSUCCESSFUL)[source]

Parse CP2K outputs and decide whether child jobs should continue.

Parameters:
  • task_document (.TaskDocument) – A CP2K task document.

  • handle_unsuccessful (bool or str) –

    This is a three-way toggle on what to do if your job looks OK, but is actually unconverged (either electronic or ionic):

    • True: Mark job as completed, but stop children.

    • False: Do nothing, continue with workflow as normal.

    • ”error”: Throw an error.

Returns:

Whether to stop child jobs.

Return type:

bool