we need to put the workflows to run as a service, the idea is to create a point of entry in the cli code called run_as_a_service it can be a click command.
idea:
@click.command()
....
@pass_config
def run_as_a_service(...):
while True:
# run github workflow
# run redmine workflow
sleep(60 * 15) # 15 minutes
NOTE: which workflow to run can be read from JIRASYNC_SETTINGS_PATH/config.yaml
The file should be deployed to /lib/systemd/system/jirasync.service we can have a script, a maketarget or ansible playbook to depploy it. Must be deployed as root and with 0644 permissions.
we need to put the workflows to run as a service, the idea is to create a
point of entry
in thecli
code calledrun_as_a_service
it can be a click command.idea:
Then we put this to run in a systemd unit.
jirasync.service
The file should be deployed to
/lib/systemd/system/jirasync.service
we can have a script, a maketarget or ansible playbook to depploy it. Must be deployed asroot
and with0644
permissions.