1
0
Fork 0
mirror of synced 2024-06-29 11:40:45 +12:00

Shifted comment location

This commit is contained in:
Eldad Fux 2020-10-02 11:25:57 +03:00
parent 18d1ced3de
commit 07280098d6

View file

@ -22,10 +22,10 @@ $environments = Config::getParam('environments');
$warmupStart = \microtime(true); $warmupStart = \microtime(true);
Co\run(function() use ($environments) { Co\run(function() use ($environments) { // Warmup: make sure images are ready to run fast 🚀
Swoole\Runtime::enableCoroutine(SWOOLE_HOOK_ALL); Swoole\Runtime::enableCoroutine(SWOOLE_HOOK_ALL);
foreach($environments as $environment) { // Warmup: make sure images are ready to run fast 🚀 foreach($environments as $environment) {
go(function() use ($environment) { go(function() use ($environment) {
$stdout = ''; $stdout = '';
$stderr = ''; $stderr = '';
@ -169,7 +169,19 @@ class FunctionsV1
break; break;
case 'schedule': case 'schedule':
# code... /*
* 1. Get Original Task
* 2. Check for updates
* If has updates skip task and don't reschedule
* If status not equal to play skip task
* 3. Check next run date, update task and add new job at the given date
* 4. Execute task (set optional timeout)
* 5. Update task response to log
* On success reset error count
* On failure add error count
* If error count bigger than allowed change status to pause
*/
break; break;
case 'http': case 'http':