Loading search index…
No recent searches
No results for "Query here"
This is a simple job that prints the current date and time.
from config.luigi import luigi, local_scheduler from datetime import datetime class SimpleJob(luigi.Task): def run(self): formatted_time = datetime.now().strftime('%b %d, %Y %I:%M %p') message = f'Date and time: {formatted_time}' print(message) # Mark task as completed self.task_completed = True def complete(self): return getattr(self, 'task_completed', False) def main(): luigi.build([SimpleJob()], local_scheduler=local_scheduler) if __name__ == '__main__': main()