@mborzecki I think I found unwanted bug in error handling for timer feature.
So I have installed previously snap with timer definition, but this was in time when there was no timer support in edge channel. Now when timer support has landed I wanted to test it again, but I can’t uninstall/refresh this installed snap. Sure I can switch channel or revert back to core snap without timer support so I can uninstall, but error handling should be relaxed enough to allow snap removal as minimum.
I get following error:
error: cannot perform the following tasks:
Stop snap “xxxxx” services ([stop snap.xxxxx.xxxxx.timer] failed with exit status 5: Failed to stop snap.xxxxx.xxxxx.timer: Unit snap.xxxxxx.xxxxxx.timer not loaded.
)
Hello, I am using the timers in the snap I have created to cleanup gce instances. This timer is triggering a service every 15 minutes, where the key here is to passthrough the timer.
This is the snapcraft.yaml which I am using:
name: gce-cleaner
version: 1.0.5
summary: Basic snap used to clean machines on gce
description: Basic snap used to clean machines on gce
confinement: strict
grade: stable
apps:
runner:
command: cleaner
daemon: simple
plugs: [network]
passthrough:
# Run every 15 minutes
timer: 0:00-24:00/96
parts:
deps:
plugin: python
python-packages: [google-api-python-client, python-dateutil]
source: .
copy:
plugin: dump
source: .