-
Notifications
You must be signed in to change notification settings - Fork 4.4k
🐛 Bug Report: Schedule function with minutes does not work #5719
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
Comments
i got same problem |
This is Schrödinger's cat, you set up the json file, deploy function, and then do not enter the setting page of this function, other pages can be viewed (such as logs), the timing will not be canceled, but as long as you enter the setting page, the timing will expire |
This should be a display bug, I just tested the setting to execute every 10 minutes (via json), although the page will have a clock for a while, and then not, but the methods are executed on time (check the log). You can set a more frequent timing to see what happens. (After the first automatic execution, the clock marker didn't disappear anymore) |
We're going to focus this issue on the incorrect validation error. |
Hi , so the incorrect validation is due to regex pattern. |
PR was created for this issue. Please review |
@Sachin24704 would you please link to this issue from the PR so it shows up here? |
the PR is in the console repo - appwrite/console#473 -hope this helps. I was not able to link it here in this repo. Thanks |
Is there any work-around for this? The issue's open for a long time and I'm having huge issues on production due to this. |
Closing and unassigning due to inactivity. |
@sunjianan9900 the workaround is to use your browser dev tools to remove the client-side pattern validation. |
@stnguyen90 Can i be assigned this issue? |
@KanniShashankh, assigned! Thanks for your interest! 🙏 |
Are we going to support all types of cron syntax? Because the regex pattern would be pretty verbose for covering all cases |
@KanniShashankh let's just focus on fixing the bugs and supporting standard syntax |
@stnguyen90 Please review i have mentioned the PR here, Thank you |
Uh oh!
There was an error while loading. Please reload this page.
👟 Reproduction steps
I create and deploy a function with cron schedule 30 1 * * * :
The function is deployed and build successfully but the schedule is not active despite the cron is visible on the function settings :
If I try to modify the value on the console, there is an error :
I also try to edit the value on the json and redeploy the function but no schedule active☹️
If I set
* * * * *
or0 1 * * *
, there is no problem, only when minutes are other than*
or0
.👍 Expected behavior
The function is executed with the cron value on the Schedule part (with minutes on the cron value).
👎 Actual Behavior
The function is not executed and the schedule is not active (no clock on the bottom right).
🎲 Appwrite version
Version 1.3.x
💻 Operating system
MacOS
🧱 Your Environment
Appwrite version 1.3.7
CLI version 2.0.2
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: