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

Scheduled tasks? #97

Open
trevstanhope opened this issue Oct 15, 2015 · 6 comments
Open

Scheduled tasks? #97

trevstanhope opened this issue Oct 15, 2015 · 6 comments

Comments

@trevstanhope
Copy link

Does crow have the ability to schedule tasks to be run on an interval? I.e. like for scheduling a maintenance function? (similar to Monitors in CherryPy3)

Would you be interested in help building/integrating that feature?

@voldyman
Copy link

👍 interested in this feature.

@acron0
Copy link
Contributor

acron0 commented Oct 29, 2015

I don't really agree that this feature is in the spirit of a Flask-inspired web framework. There are a lot of examples here on GitHub of C schedulers that you can integrate with ease.

@ipkn
Copy link
Owner

ipkn commented Nov 28, 2015

I think "run in the same thread" feature can be helpful for avoiding some multithreading problems. (like app.post(req, Work))
But if you need more sophiscated features, using a library for it is probably better.

@trevstanhope
Copy link
Author

@acron0 / @ipkn, are you aware of another C project which is intended for scheduled execution of threaded tasks that might be a good fit for me to patch into a fork of crow?

@acron0
Copy link
Contributor

acron0 commented Jan 18, 2016

@trevstanhope For threaded (or not) tasks I've used C CSP2 but not sure about scheduling (don't do much C these days).

@Sqeaky
Copy link

Sqeaky commented Jan 19, 2016

Depending on how complex your tasks are you might be able to get away an std::thread or an std::packaged_task combined with std::this_thread::sleep_until.

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

No branches or pull requests

5 participants