app_id = $app->id; $job->batch = 0; $job->time_estimate = 30; $job->time_limit = 600; $job->nsuccess_needed = 3; for ($i=0; $i<10; $i++) { $job->name = "job_$i"; $job->job_info = "$i"; if (!Bossa::insert_job($job)) { echo "failed: ", mysql_error(); exit(1); } } } make_jobs(); ?>