-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updateing docs & prod service file (#465)
* Update prefect.rst and hedwig_listener_prod.service - fixups to docs / daemon post release
- Loading branch information
Showing
2 changed files
with
46 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
|
||
[Unit] | ||
Description=Starts the Production listener "Agent" which reaches out to workflow API. | ||
Description=Starts the Production listener worker, which reaches out to workflow API. | ||
After=network.target | ||
|
||
|
||
[Service] | ||
Type=simple | ||
User=hedwig_prod | ||
Group=hedwig_prod | ||
ExecStart=/gs1/home/hedwig_prod/image_portal_workflows/helper_scripts/hedwig_reg_listen.sh listen | ||
WorkingDirectory=/gs1/home/hedwig_prod | ||
Environment="HEDWIG_ENV=prod" | ||
Environment="REQUESTS_CA_BUNDLE=/etc/pki/tls/certs/ca-bundle.crt" | ||
Environment="PREFECT_API_URL=https://prefect2.hedwig-workflow-api.niaidprod.net/api" | ||
Environment="IMOD_DIR=/opt/rml/imod" | ||
WorkingDirectory=/gs1/home/hedwig_prod/image_portal_workflows | ||
# current setting on prod | ||
# WorkingDirectory=/gs1/home/hedwig_prod | ||
|
||
ExecStart=/gs1/home/hedwig_prod/prod/bin/prefect worker start --pool workpool | ||
Restart=always | ||
RestartSec="60s" | ||
|
||
[Install] | ||
WantedBy=multi-user.target |