diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2021-03-11 01:37:01 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2021-03-11 01:37:04 +0300 |
commit | 517160645d75e5e7c94a99087630b9c3fc0c3823 (patch) | |
tree | 6977c3a6407b8813d1c6675a6ff283a7bbfde33a /example/create-tasks.php | |
parent | 7ba383cc56e937a03ef8142964028b3a29863356 (diff) |
delete examples dir
Diffstat (limited to 'example/create-tasks.php')
-rw-r--r-- | example/create-tasks.php | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/example/create-tasks.php b/example/create-tasks.php deleted file mode 100644 index 9afc886..0000000 --- a/example/create-tasks.php +++ /dev/null @@ -1,22 +0,0 @@ -<?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 = 'server3'; -$slots = ['low', 'normal', 'high']; - -for ($i = 0; $i < 100; $i++) { - $slot = $slots[array_rand($slots)]; - $time = time(); - if (!$db->query("INSERT INTO jobs (target, slot, time_created, status) VALUES ('$target', '$slot', $time, 'waiting')")) - echo "{$db->error}\n"; -} - -$db->close();
\ No newline at end of file |