|
|
@ -272,20 +272,11 @@ process.exit(0)
|
|
|
|
<textarea class="glueSource_powershell" style="display:none;" >
|
|
|
|
<textarea class="glueSource_powershell" style="display:none;" >
|
|
|
|
Write-Host "xxl-job: hello powershell"
|
|
|
|
Write-Host "xxl-job: hello powershell"
|
|
|
|
|
|
|
|
|
|
|
|
if($args.Count -eq 3) {
|
|
|
|
|
|
|
|
$executorparam = $args[0]
|
|
|
|
|
|
|
|
$shard_index = $args[1]
|
|
|
|
|
|
|
|
$shard_total = $args[2]
|
|
|
|
|
|
|
|
} Else {
|
|
|
|
|
|
|
|
$executorparam = ""
|
|
|
|
|
|
|
|
$shard_index = $args[0]
|
|
|
|
|
|
|
|
$shard_total = $args[1]
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Write-Host "${I18n.jobinfo_script_location}: " $MyInvocation.MyCommand.Definition
|
|
|
|
Write-Host "${I18n.jobinfo_script_location}: " $MyInvocation.MyCommand.Definition
|
|
|
|
Write-Host "${I18n.jobinfo_field_executorparam}: " $executorparam
|
|
|
|
Write-Host "${I18n.jobinfo_field_executorparam}: "
|
|
|
|
Write-Host "${I18n.jobinfo_shard_index}: " $shard_index
|
|
|
|
if ($args.Count -gt 2) { $args[0..($args.Count-3)] }
|
|
|
|
Write-Host "${I18n.jobinfo_shard_total}: " $shard_total
|
|
|
|
Write-Host "${I18n.jobinfo_shard_index}: " $args[$args.Count-2]
|
|
|
|
|
|
|
|
Write-Host "${I18n.jobinfo_shard_total}: " $args[$args.Count-1]
|
|
|
|
|
|
|
|
|
|
|
|
Write-Host "Good bye!"
|
|
|
|
Write-Host "Good bye!"
|
|
|
|
exit 0
|
|
|
|
exit 0
|
|
|
|