summaryrefslogtreecommitdiff
path: root/example/create-tasks.php
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-02-26 18:09:01 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-02-26 18:09:01 +0300
commitc3fa113769dce4bd97ee4e3b193409d97b569534 (patch)
treee04a698758a66f1064177a686917caea4042882c /example/create-tasks.php
parentc8da2c8b3f5ef5c95dc7978a476a4830ca6d7c0e (diff)
examples: improve examples
Diffstat (limited to 'example/create-tasks.php')
-rw-r--r--example/create-tasks.php7
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++) {