Giter Club home page Giter Club logo

Comments (5)

Xiangze-Li avatar Xiangze-Li commented on July 28, 2024

需要细化. 目前想到的问题可能包括:

  1. 如何删除添加的任务?
    可能: 添加任务接口返回任务的 ID, 提供根据 ID 删除任务的接口.
  2. 是否能够支持持久化?
    如果支持, 能否做到重启前后 ID 不变?
  3. 在添加的任务函数里能使用哪些对象?

from sealdice-core.

MintCider avatar MintCider commented on July 28, 2024

滋瓷!

from sealdice-core.

MintCider avatar MintCider commented on July 28, 2024

2. 是否能够支持持久化

Go 不支持持久化一个 callable 吧?有什么 workaround 么?

from sealdice-core.

Xiangze-Li avatar Xiangze-Li commented on July 28, 2024
  1. 是否能够支持持久化

Go 不支持持久化一个 callable 吧?有什么 workaround 么?

所以我才让ID来补充描述……

他的详细设计不需要持久化 callable。插件不能动态地使用这里的定时器,而是只从这里获取打点。以定时任务举例,插件可能只注册一个 * * * * * 的定时器,并在每次打点时轮询任务。

from sealdice-core.

JustAnotherID avatar JustAnotherID commented on July 28, 2024

是的,我之前设想的只是提供一个获取打点的机制。

  1. core 中有个公共的 cron 用于提供计时。
  2. 每个插件可以通过参数获取不同频率的打点,至于获取打点后的逻辑如何处理都交给插件自行处理。

from sealdice-core.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.