Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Periodic Workflow is not triggered after migration to .Microsoft.Azure.DurableTask.AzureStorage" Version="2.0.0" #1155

Open
keshari opened this issue Aug 15, 2024 · 4 comments
Assignees

Comments

@keshari
Copy link

keshari commented Aug 15, 2024

Hi Team,

We recently migrated our periodic workflows from the DTF library to the latest Microsoft.Azure.DurableTask.AzureStorage (v2.0.0) due to security compliance. However, existing periodic workflows are no longer triggering. Though when we check status for periodic workflow , it always shows in running state.

Code Snippet:

C#
public sealed override async Task RunTask(OrchestrationContext context, TInput input)
{
// ... existing logic ...

finally
{
await context.CreateTimer(DateTime.UtcNow.Add(this.Periodicity), null);
context.ContinueAsNew(input);
}
}

Suspected Cause:

The issue seems to be related to the migration to v2.0.0 of the Azure Storage provider. Older periodic workflows might have compatibility issues.

Observations:

No errors or exceptions are logged.
Request:

Please investigate this potential compatibility issue and suggest solutions to restore scheduled trigger functionality for existing workflows

@keshari keshari changed the title Periodic Workflow is not triggered after set period when migrated to .Microsoft.Azure.DurableTask.AzureStorage" Version="2.0.0" Periodic Workflow is not triggered after migration to .Microsoft.Azure.DurableTask.AzureStorage" Version="2.0.0" Aug 15, 2024
@keshari
Copy link
Author

keshari commented Aug 20, 2024

Hi Team,

Any update on this bug?

Thanks
Kishor

@nytian nytian self-assigned this Aug 20, 2024
@nytian
Copy link
Collaborator

nytian commented Aug 20, 2024

Hi, can you help provide me logs generated by DTFx.AzureStorage to help me investigate? Thanks!

@keshari
Copy link
Author

keshari commented Aug 24, 2024

Shared the logs offline.

@nytian
Copy link
Collaborator

nytian commented Sep 11, 2024

I've reviewed the logs provided, but they did not include the necessary logs from DurableTask-AzureStorage.

I also requested code from @keshari and reproduced the workflow on my end by creating an orchestrator instance with a Timer and ContinueAsNew. I first used DTFx.ASv1.17.3, then continued the same orchestrator instance with DTFx.AS v2.0.0, and it worked as expected with no issue. So, I'm requesting @keshari to share logs with the relevant information again for further investigation.

Also, asked @keshari to downgrade DTFx.AzureStorage ver to v1.17.4 first as they were using a old version as v1.12, to see if the issue can be mitigated/instance continue running.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants