Mercurial > gemma
view pkg/imports/gmsched.go @ 1654:85386ad17d34
Scheduled imports: Don't track the user in the running scheduler.
The user is stored in the database already.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 20 Dec 2018 18:39:19 +0100 |
parents | 06f08458d666 |
children | 51a0ba4ede41 |
line wrap: on
line source
// This is Free Software under GNU Affero General Public License v >= 3.0 // without warranty, see README.md and license for details. // // SPDX-License-Identifier: AGPL-3.0-or-later // License-Filename: LICENSES/AGPL-3.0.txt // // Copyright (C) 2018 by via donau // – Österreichische Wasserstraßen-Gesellschaft mbH // Software engineering by Intevation GmbH // // Author(s): // * Sascha L. Teichmann <sascha.teichmann@intevation.de> package imports import ( "log" "gemma.intevation.de/gemma/pkg/scheduler" ) func init() { scheduler.RegisterAction("gm", scheduledGM) } func scheduledGM(id int64) { log.Println("info: scheduled GM import") cfg, err := loadIDConfig(id) if err != nil { log.Printf("error: %v\n", err) return } if cfg == nil { log.Printf("warn: No config found for id %d.\n", id) return } // TODO: Implement me! }