Comments (2)
Hello, let's assume we have this task file:
<?php
use Crunz\Schedule;
$scheduler = new Schedule();
$scheduler
->run('php -v')
->description('PHP version')
->everyTwoMinutes()
;
return $scheduler;
Now, let's see example run dates from ./crunz task:debug 1
:
+----------------------+-----------------------------------+
| Example run dates |
| #1 | 2022-08-28 06:38:00 Europe/Warsaw |
| #2 | 2022-08-28 06:40:00 Europe/Warsaw |
| #3 | 2022-08-28 06:42:00 Europe/Warsaw |
| #4 | 2022-08-28 06:44:00 Europe/Warsaw |
| #5 | 2022-08-28 06:46:00 Europe/Warsaw |
+----------------------+-----------------------------------+
And here is the thing, if you run ./crunz schedule:run
(multiple times) on 06:42
it will run (multiple times), but on 06:43
it won't run.
Crunz assumes it is run by Cron, every minute and in that scenario everything works as expected. Is there any use case for running Crunz multiple times in same minute?
from crunz.
I'm closing because of inactivity.
from crunz.
Related Issues (20)
- Running task in sequence HOT 2
- Non-numeric identifier for run individual task HOT 10
- Documentation: RetryTillSaveStore has been removed from Symfony/lock HOT 1
- New Feature: onOneServer HOT 9
- Provide information about the file events were sourced from in schedule:list HOT 1
- Allow adding of an error callback to a Task HOT 1
- Any way to delete a php script task file after its execution HOT 2
- Multiple Schedule objects from one task-file HOT 5
- Is it possible to execute crunz within PHP? HOT 4
- Configure the temporary directory instead of using \sys_get_temp_dir()
- Getter for from, to task's parameters HOT 1
- New log format
- Task Life Time functions don't respect the timezone HOT 3
- Task activity status HOT 6
- how to set errors_log_file and output_log_file to save relative to the project. HOT 2
- Support for Symfony 7 HOT 4
- Tasks do not run after upgrade to latest version HOT 1
- Realtime output HOT 2
- Source calculation issues when running CLI commands from code HOT 1
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 crunz.