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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix schedule loop triggering #3908

Merged
merged 2 commits into from Sep 30, 2022
Merged

Conversation

Meldiron
Copy link
Contributor

What does this PR do?

If you set schedule in createFunction, the schedule loop is never started. This occurs in Appwrite CLI. This PR solves it.

Also, this PR makes it so updateFunction forcefully re-triggers schedule loop. Old loop will be stopped, so no double executions. This is useful, for instance, when you clean your Redis instance and loop is gone. By clicking "Update" on function settings you can easily re-trigger the loop.

Test Plan

Manual QA for all edge cases I can think of:

CleanShot 2022-09-23 at 08 12 10@2x

Related PRs and Issues

x

Have you read the Contributing Guidelines on issues?

Yes 馃槆

@Meldiron
Copy link
Contributor Author

Also did QA from CLI to ensure the specific use case is addressed.

CleanShot 2022-09-23 at 08 19 10@2x

@TorstenDittmann TorstenDittmann changed the base branch from master to 1.0.x September 30, 2022 09:44
@TorstenDittmann TorstenDittmann merged commit b1197d5 into 1.0.x Sep 30, 2022
@TorstenDittmann TorstenDittmann deleted the fix-function-schedule-loops branch September 30, 2022 09:45
@s3ppo
Copy link

s3ppo commented Oct 4, 2022

馃槏

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

Successfully merging this pull request may close these issues.

None yet

3 participants