recipe.get_status() no longer returning state of continuous recipe

Previously I was using the below code to check if a continuous_recipe was running and if it wasn't then it would restart it.
Since our most recent update, it no longer returns the elements that would tell me the current state of the recipe to key off of.
Where could I get the state of a continuous recipe to fix my code?
Code:
import dataiku
client = dataiku.api_client()
project = client.get_project('REMOVED')
continuous_activities = project.list_continuous_activities()
for recipe in continuous_activities:
recipe_running = str(recipe.get_status()['mainLoopState']['futureInfo']['alive'])
print(str(recipe.recipe_id) + " - Running: " + recipe_running)
if recipe_running == "False":
recipe.start()
Example of new object:
{ "mainLoopState": {}, "projectKey": "REMOVED", "recipeId": "REMOVED_FOR_COMMUNITY", "recipeType": "csync", "desiredState": "STOPPED", "loopParams": { "abortAfterCrashes": -1, "initialRestartDelayMS": 0, "maxRestartDelayMS": 0, "restartDelayIncMS": 0 }}
Operating system used: Windows
Answers
-
Turribeach Dataiku DSS Core Designer, Neuron, Dataiku DSS Adv Designer, Registered, Neuron 2023 Posts: 2,501 Neuron
"Since our most recent update" ⇒ What version you had before and what version you have now?
-
https://developer.dataiku.com/latest/api-reference/python/streaming-endpoints.html#dataikuapi.dss.continuousactivity.DSSContinuousActivity
https://developer.dataiku.com/latest/api-reference/python/projects.html#dataikuapi.dss.project.DSSProject.get_continuous_activity