You can use the Gii code generator to create a job template.
To use the Gii job generator you have to configure it like the following:
if (!YII_ENV_TEST) {
$config['bootstrap'][] = 'gii';
$config['modules']['gii'] = [
'class' => 'yii\gii\Module',
'generators' => [
'job' => [
'class' => \yii\queue\gii\Generator::class,
],
],
];
}
After doing so you'll find the generator in the Gii menu.