-
-
Notifications
You must be signed in to change notification settings - Fork 795
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
Schedule rate "cron" not yet supported! #1044
Comments
Hi, @dherault 👋 – Can you take a look at this and provide context? Thanks! |
@dherault Just a reminder that this one is with you. Looks like this comment was done by @dnalborczyk though. |
Is there any info on this by any chance? For info:
works, with the message:
but
gives the messages
I'm assuming because only basic cron syntax is supported ("every X")? |
I took a brief look into this so I could carry on. It looks like the schedule code was influenced by the now-unsupported serverless-offline-scheduler plugin, which did support cron. Looking at the file I wrote a patch to uncomment cron support, you can find it in the attached zip, just put the patches folder into your project root, install patch-package, and re-install your dependencies. Warning: Use this patch at your own risk, this code was likely commented out because something is broken, hence why I'm not fixing it with a PR. |
The same thing is happining to me. Is there any PR to fix this? |
I opened this issue coming up on a year ago now. for those running across this issue via Google and such, I don't have any faith that it will ever be addressed. maintainers have not responded to it, so I have to assume they have no interest in it. we have since stopped using serverless and have started using the CDK as a far better alternative. |
I feel your pain... |
Any update on this? |
1 similar comment
Any update on this? |
Debugging with this command works for me:
My serverless.yml:
My package.json:
|
You might've got the below error/warning message
|
Is there any plan to add |
There is no active work on that but PRs are welcome 💯 |
+1 |
It's been almost 3 weeks, and i've gotten two approvals from devs that don't have permission to push, but no attention from any of the maintainers that do. Starting to wonder if this is a dying project, maybe it's time to fork off and maintain it. The organization i work for is heavily invested in serverless, and am fairly certain our CTO would agree to maintain a public repo forking this one for the benefit of others. If there's any interest i'll see what i can do. |
The conversation IS directly related to the resolution of this specific issue. You know there is a "Unsubscribe" button in the right hand pane under Notifications if you yourself are done w this issue getting resolved. (Try Ctrl+F on Windows, or Cmd+F on a Mac and search for "Unsubscribe" if you're having a hard time finding it). I do appreciate you bringing up issue #304, tho, i'll see if i can simply be given maintainer status so we can get this issue pushed through. |
released as part of v8.8.0 |
Bug Report
Current Behavior
Using the following configuration results in an error message:
schedule rate "cron" not yet supported!
Sample Code
Expected behavior/code
My expectation was that I would not receive an error message.
Environment
serverless
version: 1.67.3serverless-offline
version: 6.1.4node.js
version: 14.0.0OS
: macOS 10.15.2Possible Solution
It looks like a solution was commented out in this commit 1c29984 and the error message was added. I wasn't able to find any context in the issues for why the change was made, the commit message contained no additional information, and there were no code comments to indicate why support was removed.
Additional context/Screenshots
The text was updated successfully, but these errors were encountered: