Task is getting created with null status

One user task is created and i could see in operate, but i am getting the status as null in the response.
I think task is created with status as null.
Can someone help on this?

Hi @Hariharan
Please share more details on the issue. Provide screenshots and examples of requests you’re making to get the task status.

Regards,
Alex

Hi @Hariharan , I assume this is because you try to fetch the task directly after creation from Operate, right?

Camunda 8 operates in an async, event-streaming way. You need to account for that in your architecture. We are working on better documentation for that to make this clear. Until then, we can support you here.

Tasks are provisioned to Operate and Tasklist about 5 secs after creation.
In our tutorial, we suggest to use active polling for tasks: Tutorial | Camunda 8 Docs

For real-time access, please look at custom exporters, one example here: OpenSearch exporter | Camunda 8 Docs

Best,
Christian