Closed vba34520 closed 1 year ago
import os
import datetime
from rocketry import Rocketry
from redbird.repos import CSVFileRepo
from rocketry.log import MinimalRecord, LogRecord, TaskLogRecord
filename = 'logs.csv'
if os.path.exists(filename):
os.remove(filename)
app = Rocketry(logger_repo=CSVFileRepo(filename=filename, model=MinimalRecord))
@app.task('secondly')
def do_things():
print(datetime.datetime.now())
if __name__ == '__main__':
app.run()
Install
Code
It raise NotImplementedError.