diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-02-26 18:09:01 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-02-26 18:09:01 +0300 |
commit | c3fa113769dce4bd97ee4e3b193409d97b569534 (patch) | |
tree | e04a698758a66f1064177a686917caea4042882c /example/create-tasks.php | |
parent | c8da2c8b3f5ef5c95dc7978a476a4830ca6d7c0e (diff) |
examples: improve examples
Diffstat (limited to 'example/create-tasks.php')
-rw-r--r-- | example/create-tasks.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/example/create-tasks.php b/example/create-tasks.php index 35968a9..9afc886 100644 --- a/example/create-tasks.php +++ b/example/create-tasks.php @@ -1,10 +1,15 @@ <?php +// this just adds a bunch of meaningless tasks, for testing purposees +// +// in a real world, you will have additional fields in your table +// like 'job_name' and 'job_data' + $db = new mysqli(); if (!$db->real_connect('10.211.55.6', 'jobd', 'password', 'jobd')) die('Failed to connect.'); -$target = 'server1'; +$target = 'server3'; $slots = ['low', 'normal', 'high']; for ($i = 0; $i < 100; $i++) { |