Comments (7)
I'll have a look and let you know :)
from coravel.
I got it working - I'll have to put it up as a demo though
from coravel.
PS That's a quick and dirty example lol
from coravel.
I got it, thanks!
from coravel.
I also tried with scheduler:
serviceProvider.UseScheduler(scheduler =>
{
Action action = () =>
{
Console.WriteLine("Every minute during the week.");
};
scheduler.Schedule(action)
.EveryMinute()
.Weekday();
});
and the same result: action not firing.
from coravel.
Great, so it was because of me :)
What is missing in my code sample?
from coravel.
So you'll need to you the .NET Core Host Builder to get console apps to work. I created an example here.
If you're not familiar with the host builder you might want to start here.
You'll probably need to create a Hosted Service to do whatever you need. Or, using the web host builder you could make a really slim service that exposes a few endpoints to do whatever you need.
Let me know if things work out!
from coravel.
Related Issues (20)
- Sample to show how to execute Task on demand in .NET core 7
- Using Dependency Injection with ScheduleAsync HOT 1
- Run Task One Another / Control Concurrency in Queues HOT 1
- Is Coravel good fit for Blazor Server? HOT 4
- Stop scheduled job HOT 2
- Cron Expressions that support Seconds
- Design/Run Time
- Add support for setting Sender in mailer
- Add support for adding attachments as LinkedResources in MailMessage HOT 1
- Dispatcher.Broadcast doesn't work correctly when my listener class implements more than one IListener<> interfaces HOT 1
- Worker Service with Scheduler doesn't execute IInvocable using EveryMinute().WeekDay() on a Friday. HOT 1
- Advanced cron expressions HOT 2
- Is it possible for a job (or something else) to know when the next execution is scheduled for? HOT 2
- Unwanted Clock Drift HOT 2
- Add throttling when queuing items
- Extend Coravel Schedule With CoravelJobAttrbutes
- Scheduler does not run until WEB API server receives its first HTTP Request HOT 7
- How to use Event Broadcasting in worker service
- Task, scheduled to run on the same second, are not run in order they were added. HOT 1
- Turn off logging "Coravel's scheduler is behind" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from coravel.