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

Feature: Schedule tasks from http://localhost:8787/cdn-cgi/mf/scheduled #737

Closed
mattbdc opened this issue Mar 31, 2022 · 6 comments · Fixed by #738 or #721
Closed

Feature: Schedule tasks from http://localhost:8787/cdn-cgi/mf/scheduled #737

mattbdc opened this issue Mar 31, 2022 · 6 comments · Fixed by #738 or #721
Assignees
Labels
blocked Blocked on other work

Comments

@mattbdc
Copy link

mattbdc commented Mar 31, 2022

What version of Wrangler are you using?

0.0.24

What operating system are you using?

Linux

Describe the Bug

Would be nice to have support for manually triggering crontab tasks via a curl get request, similar to how wrangler1 (iirc) and miniflare support

https://miniflare.dev/core/scheduled

@mattbdc mattbdc added the bug label Mar 31, 2022
@threepointone
Copy link
Contributor

Admittedly we haven't put much work into the dx for scheduled workers in wrangler2, but we definitely want to do this soon. Thanks for filing this issue!

@threepointone threepointone added feature and removed bug labels Mar 31, 2022
petebacondarwin added a commit to petebacondarwin/wrangler2 that referenced this issue Mar 31, 2022
Currently, I don't know if there is support for doing this in "remote" dev mode.

Resolves cloudflare#737
@petebacondarwin petebacondarwin self-assigned this Mar 31, 2022
@petebacondarwin
Copy link
Contributor

Added support for this in local dev mode via #738

@threepointone
Copy link
Contributor

@mattbdc could you share how wrangler1 does this? I'm actually not familiar with it and haven't heard so.

@Electroid
Copy link
Contributor

@threepointone We don't have an API to trigger a cron trigger preview using wrangler dev. We'll need to engage with Runtime to conjure up something. wrangler1 can't preview a cron trigger.

@Electroid Electroid added the blocked Blocked on other work label Mar 31, 2022
@threepointone
Copy link
Contributor

Dropped some notes here for how we could potentially support it without runtime support #570 (comment)

petebacondarwin added a commit to petebacondarwin/wrangler2 that referenced this issue Mar 31, 2022
Currently, I don't know if there is support for doing this in "remote" dev mode.

Resolves cloudflare#737
threepointone pushed a commit to petebacondarwin/wrangler2 that referenced this issue Mar 31, 2022
Currently, I don't know if there is support for doing this in "remote" dev mode.

Resolves cloudflare#737
@mattbdc
Copy link
Author

mattbdc commented Apr 1, 2022

@mattbdc could you share how wrangler1 does this? I'm actually not familiar with it and haven't heard so.

Sorry I was probably getting confused - exhausted - as I had looked at Wrangler1, Wranger2 via wrlanger@beta with a lower semver than Wranger1, Miniflare ootb, Miniflare with Wrangler 1 config, Miniflare breaking with Wrangler2 config.... And no solid story on what to use and when. Flashbacks to 1password versioning during the transition to unify everything, or finding the right google sku for chat 🤣

Thanks for the addition, I hope it all comes together

petebacondarwin added a commit that referenced this issue Apr 1, 2022
Currently, there is not support for doing this in "remote" dev mode.

Resolves #737
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Blocked on other work
Projects
None yet
4 participants