Groups
Groups
Sign in
Groups
Groups
日本JobSchedulerユーザーグループ(JJUG)
Conversations
About
Send feedback
Help
workflow命令について
76 views
Skip to first unread message
riho hayashida
unread,
Jul 19, 2023, 5:21:13 AM
7/19/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本JobSchedulerユーザーグループ(JJUG)
お世話になっております。
ForkListに設定するOrder変数を読み込んだCSVファイルから引き渡し並列処理を実施させたいのですが、過去の投稿等を拝見した限りはGUIでCSVファイルの読み取り等は出来ないと認識しています。
https://groups.google.com/g/jobscheduler-ja/c/_vLOMO79_4A
その為、JOB内のscriptで実現したいと考えています。
例えばworkflow命令(CycleやForkList)をshellscriptではなく、Pythonで記述する事は可能でしょうか?Pythonscript内でworkflow命令を実行したい場合、shellと同じようにAPIを呼び出して実行する方法になりますでしょうか?
Jobschedulerのverは、2.3.2になります。
基本的な質問で申し訳ないのですが、ご存じでしたらご教授お願い致します。
arrowshooter
unread,
Jul 19, 2023, 11:16:11 PM
7/19/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to riho hayashida, 日本JobSchedulerユーザーグループ(JJUG)
pythonで対応する場合も、同様にAPIでOrder追加できます。
Pythonの実行方法ですが、下記いずれかで可能です。
1.シェルJobのスクリプト本文中に直接pythonのコードを記述する
2.コマンドラインで、python スクリプト実行の処理を書く
1の場合は、シェルJobの1行目にpython用のシバンを書くことで、pythonスクリプトとして実行可能です。
#!/usr/bin/env python3
(省略)
2の場合は、通常のスクリプト実行時と同様に、スクリプトファイルを指定して実行します。
python3 sample.py
添付は、Order変数指定でWorkflow実行するサンプルです。
必要な処理を拾って chatGPT や BingChat なんかでpython変換すれば、大枠はすぐ書けるのではと思います。
https://qiita.com/saitamanokusa/items/fde0cb4d924fed5916ee
2023年7月19日(水) 18:21 riho hayashida <
hayash...@gmail.com
>:
> --
> このメールは Google グループのグループ「日本JobSchedulerユーザーグループ(JJUG)」に登録しているユーザーに送られています。
> このグループから退会し、グループからのメールの配信を停止するには
jobscheduler-...@googlegroups.com
にメールを送信してください。
> このディスカッションをウェブ上で閲覧するには
https://groups.google.com/d/msgid/jobscheduler-ja/1700e062-2026-4673-9517-321c4027fff3n%40googlegroups.com
にアクセスしてください。
sample.py.txt
Satoru Funai
unread,
Jul 20, 2023, 5:28:53 AM
7/20/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PowerArrowShooter, riho hayashida, 日本JobSchedulerユーザーグループ(JJUG
PowerArrowShooterさん、ありがとうございます。
あとPowershll CLIを使えば、excelを直接読み込むこともできます。
https://kb.sos-berlin.com/display/JS7/JS7+-+PowerShell+Import+from+Excel+Script+-+New-JS7WorkflowFromExcel.ps1
Powershellを実行環境にインストールする必要がありますが、Linux版もあります。
https://kb.sos-berlin.com/display/JS7/JS7+-+PowerShell+Module
また元データがDBにあるならば、直接SQLで引っ張ってくることも可能です。
https://kb.sos-berlin.com/display/JS7/JS7+-+JITL+Database+Jobs
船井
----- 2023年7月20日午後 0:15 に PowerArrowShooter
inazumaar...@gmail.com
さんが書いたメッセージ:
> このメールは Google グループのグループ「日本JobSchedulerユーザーグループ(JJUG)」の登録者に送られています。
> このグループから退会し、グループからのメールの配信を停止するには
jobscheduler-...@googlegroups.com
> にメールを送信してください。
> このディスカッションをウェブ上で閲覧するには、
https://groups.google.com/d/msgid/jobscheduler-ja/CAJoqmR%3DA61ZyVdHhxUMV%2BHiRcxwCMxCx88ptXaLonRrgSLqiSA%40mail.gmail.com
> にアクセスしてください。
riho hayashida
unread,
Jul 23, 2023, 9:15:47 PM
7/23/23
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to 日本JobSchedulerユーザーグループ(JJUG)
船井さん、 PowerArrowShooterさんお忙しい中ご回答ありがとうございました。
また、何かあればご質問させていただきます。よろしくお願いします。
2023年7月20日木曜日 18:28:53 UTC+9 satoruf:
Reply all
Reply to author
Forward
0 new messages